#include "hostAPI.txt"
#include "global.txt"

var count;
var de;

var bx;
var by;
var px;
var py;

var i;

func update() {
	++count;
	if(count < 0)
		return;
		
	bx = htGetBossX();
	by = htGetBossY();
	px = htGetPlayerX();
	py = htGetPlayerY();
	
	for(i=0; i<6; ++i) {
		htInsertBulletVec(2, 0, px+de*cos(i*60), py+de*sin(i*60), 6, i*60+90);
		htSetBulletDeflectionEx(2.5, 0, 0, 120);
		htSetBulletLifeTime(120);
	}
	
}

func init() {
	count = -60;
	de = 200;
	
	htMoveBossTo(400, 130, 30);
	
	htSetSCBackground("green_bg_sc1.png", 450, 600, 1);
	htEnableBossMagicCircle("green_bg_cover1.png", 1);
	htSetBossMagicCircleColor(1, 1, 1, 1);
}