
	#Title[ʏ킻2]
	#Text[]
	#ScriptVersion[2]
	
	script_enemy_main
	{
let csd     = GetCurrentScriptDirectory;
        let imgBoss   = csd ~ "Boss.png";
    let frame     =  0;
let count;//eoԊu𐧌䂷邽߂̕ϐ;
	let count2;//eoԊu𐧌䂷邽߂̕ϐ;
	let cx;//ϐcxɐ^񒆂̍W;
		@Initialize
		{        SetLife(2000);
        SetTimer(30);
        SetDamageRate(80,50);
        LoadGraphic(imgBoss);
        SetTexture(imgBoss);
        SetGraphicRect(1, 1, 64, 64);
SetMovePosition02(GetCenterX,GetClipMinY + 120,60);
count=0;


}
			
		@MainLoop
		{SetCollisionA(GetX, GetY, 32);

 SetCollisionB(GetX, GetY, 16);
count++;
if(count>=60){
frame++;
if(frame==18){let angle=GetAngleToPlayer;
loop(36){CreateShot01(GetX,GetY,3,angle,RED21,0);
angle+=10;}}
if(frame==27){let angle=GetAngleToPlayer;
loop(18){CreateShot01(GetX,GetY,5,angle,BLUE21,0);
angle+=20;
frame=9;}}

}


}
		
		@DrawLoop
		{DrawGraphic(GetX, GetY);}
			
		@Finalize
		{DeleteGraphic(imgBoss);}

	}
  
 
