
	#Title[カッター]
	#Text[zako]
	#ScriptVersion[2]
	
	script_enemy_main
	{
        let img = "script\某クワガタ\ぶーめらん.png";
        let frame = 0;
        let aa=0;
        let aa2=90;
        let aa3=0;
        let X=GetX;
        let Y=GetY;
      LoadCommonData;
		@Initialize
		{ 
              SetLife(10000);
              LoadGraphic(img);
SetGraphicAngle(0,0,aa);
              SetTexture(img);  SetGraphicRect(0, 0, 64, 64);


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


		}
		
		@DrawLoop
		{
		   DrawGraphic(GetX, GetY);
		}
			
		@Finalize
		{
  
		}
         task TMain{
               yield;
        shot;
loop(180){
SetAngle(aa3);
SetSpeed(6);
loop(1){yield;}
aa3=aa3+2;
}

VanishEnemy;

                   }



	
task shot{
loop(90){

CreateShot02(GetX,GetY,2,aa2-25,0,0,WHITE01,30);
CreateShot02(GetX,GetY,2,aa2+25,0,0,ORANGE01,30);
CreateShot02(GetX,GetY,2,aa2,0,0,BLUE12,10);
aa2=aa2+20;
loop(10){yield;}
}


}
}
