#e
#Title[XuGNgt[Y-Nomal-v]
#Text[G@Ĺu`mvł]
#ScriptVersion[2]
#PlayLevel[Nomal]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let name = "XuGNgt[Y-Nomal-v";
 let pet = 0;

 @Initialize {
  CutIn(KOUMA, name, "", 0, 0, 0, 0);
  SetX(GetCenterX);
  SetY(GetCenterY - 60);
  SetLife(8000);
  SetScore(1000000);

  LoadGraphic(img);
  SetTexture(img);
  SetGraphicRect(64, 0, 128, 64);

  TMain;
 }

 @MainLoop {
  SetCollisionA(GetX, GetY, 24);
  SetCollisionB(GetX, GetY, 24);

  pet += 1;
  if(pet == 360) {
   TimeStop(30, 1, 0, 0);
   MotionBlur(SHOT, 30, 244);
   pet = 0;
  }

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
 }

 task TShot {
  yield;

  loop {
   loop(25) { yield; }
   CreateShot01(rand(GetClipMinX, GetClipMaxX), GetClipMinY, rand(1, 2), rand(80, 100), BLUE01, 0);
  }
 }

}