#Title[th[ʏQ]
#Text[]
#Image[]
#BackGround[]
#PlayLevel[]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
#include_function ".\th[.txt"
	let frame   = 0;

	@Initialize{
	SetX(GetCenterX);
	SetY(GetClipMinY + 120);
	SetLife(2000);
	SetTimer(69);
	SetDamageRate(100,25);

	LoadGraphic(imgboss);
	SetTexture(imgboss);
	SetGraphicRect(0,0,127,127);
	Shot();
	}

	@MainLoop{
	SetCollisionA(GetX,GetY,24);
	SetCollisionB(GetX,GetY,24);

	yield;
	}

	@DrawLoop{
	DrawGraphic(GetX,GetY);
	}

	@Finalize{
	DeleteGraphic(imgboss);
	}

	task Shot(){
	let angle;
	let speed;
	loop(150){yield;}
	AroundKoteiHard();
	loop{
	SetShotDirectionType(PLAYER);
	loop(100){yield;}
	speed = 2;
	loop(3){
	CreateShot01(GetX,GetY,speed,-15,PURPLE03,0);
	CreateShot01(GetX,GetY,speed+0.5,0,PURPLE03,0);
	CreateShot01(GetX,GetY,speed,15,PURPLE03,0);
	speed++;
	}
	loop(50){yield;}
	angle = rand(0,360);
	Allshot(2.2,angle,24,RED11,0);
	Allshot(2.8,angle,24,RED11,0);
	}
	}

}