
	#Title[シールド]
	#Text[zako]
	#ScriptVersion[2]
	
	script_enemy_main
	{
        let img = "script\某アルマジロ\しーるど.png";
        let frame = 0;
        let aa=0;
        let aa2=0;
        let aa3=0;
        let X=GetX;
        let Y=GetY;
      LoadCommonData;
		@Initialize
		{ 
              SetLife(400);
              LoadGraphic(img);
SetAlpha(150);
SetGraphicAngle(0,0,aa);
              SetTexture(img);  SetGraphicRect(0, 0, 128, 128);


             TMain;
		
		}
			
		@MainLoop
		{
    SetCollisionA(GetX, GetY, 60);
    SetCollisionB(GetX, GetY, 60);
    aa=aa+21;
SetGraphicAngle(0,0,aa);
   yield;


		}
		
		@DrawLoop
		{
		   DrawGraphic(GetX, GetY);
		}
			
		@Finalize
		{
 
		}
         task TMain{
               yield;
 shot2;
loop(30){yield;}
aa3=GetAngleToPlayer;
loop(30){yield;}
SetAngle(aa3);
loop(60){
SetSpeed(7);
shot;
loop(1){yield;}
}
SetSpeed(5);
SetAngle(aa3+180);
loop(70){yield;}

VanishEnemy;

                   }



	
sub shot{


CreateShot02(GetX,GetY,2,aa2,0,0,PURPLE12,30);
CreateShot02(GetX,GetY,2,aa2+180,0,0,WHITE12,30);
aa2=aa2+15;



}
sub shot2{

loop(12){
CreateShot02(GetX,GetY,2,aa2,0.1,7,PURPLE02,20);
CreateShot02(GetX,GetY,2,aa2+180,0.1,7,WHITE02,20);
aa2=aa2+165;
}


}
}
