#Title[`m{Xʏg]
#Text[]
#Image[]
#BackGround[]
#PlayLevel[]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
	#include_function ".\eW.txt"

	let frame   = 0;

	@Initialize{
	SetX(GetCenterX + 120);
	SetY(GetClipMaxY + 32);
	SetLife(1500);
	SetTimer(29);
	SetDamageRate(100,15);

	LoadGraphic(imgboss1);
	SetTexture(imgboss1);
	SetGraphicRect(0,0,127,127);
	Shot();
	Move();
	}

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

	@DrawLoop{
	DrawGraphic(GetX,GetY);
	}

	@Finalize{
	MasicPointAddNormal(2);
	DeleteGraphic(imgboss1);
	}

	task Shot(){
	let angle = GetAngleToPlayer;
	loop(80){yield;}
	loop{
	loop(3){
	angle = GetAngleToPlayer;
	CirnoShotA(angle,2);
	loop(40){yield;}
	}
	loop(4){
	loop(3){
	angle = GetAngleToPlayer;
	Allshot(3,angle+rand(-4,4),24,BLUE01,0);
	loop(15){yield;}
	}
	}
	}
	}

	task Move(){
	let y1 = 120;
	SetMovePosition02(GetCenterX,y1,60);
	loop{yield;}

	}

}