
script_enemy_main
{    
   let imgEnemy="script\DanMUku\Stage4\Image\j64.png";
   let count=0;
   let a=36;
   let b =0;
   let x=GetX;

   @Initialize
   {
	LoadUserShotData("lib\ExpandedShotData\supershot.txt");
            LoadGraphic(imgEnemy);
            SetLife(15);    
   }
   
   @MainLoop
   {
	if(count==50){
		a=67;
		b=38;
		SetAngle(60);
		SetSpeed(0.1);
	}
	if(count>=50){
		SetSpeed(GetSpeed+0.05);
	}
	if(GetY>GetClipMaxY+10){VanishEnemy;}
      count++;
   }
   
   @Finalize
   {
      DeleteGraphic(imgEnemy);
   }
   
   @DrawLoop
   {
	if(x>GetX){
		SetGraphicAngle(180,0,0);
	}
	if(x<GetX){
		SetGraphicAngle(0,0,0);
	}
      x=GetX;
      SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetTexture(imgEnemy);
            SetGraphicRect(b,0,a,43);
            DrawGraphic(GetX,GetY);
   }
}