
	#Title[sonic]
	#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(10000);
             
              LoadGraphic(img);
SetAlpha(200);
SetGraphicAngle(0,0,180);
              SetTexture(img);  SetGraphicRect(0,0,333,146);


             TMain;
		
		}
			
		@MainLoop
		{
    SetCollisionA(GetX, GetY-60, 150);
    SetCollisionB(GetX, GetY-50, 150);
   yield;


		}
		
		@DrawLoop
		{
		   DrawGraphic(GetX, GetY);
		}
			
		@Finalize
		{
  
		}
         task TMain{
               yield;
let AA=0;
SetAngle(90);
SetSpeed(AA);
shot;
loop(60){SetSpeed(AA);yield;AA=AA+0.2;}
loop(60){yield;}
VanishEnemy;

                   }



	
task shot{
loop{yield;
loop(3){
  CreateShotA(3592, GetX+rand(-150,150), GetY, 30);
 SetShotDataA(3592, 0, 1, GetAngleToPlayer, 0, 0, 7, BLUE05);
SetShotKillTime(3592,0);
FireShot(3592);
}
}


}
}
