#e
#Title[u_[NCEubNoO-Hard-v]
#Text[G@ĹuOEiCgoOv]
#ScriptVersion[2]
#PlayLevel[Hard]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let name = "u_[NCEubNoO-Hard-v";

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

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

  TMain;
 }

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

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
  TShot2;
  TShot3;
 }

 task TShot {
  yield;

  loop {
   loop(4) { yield; }
   SetShotColor(1, 1, 1);
   CreateShot01(GetClipMaxX, rand(GetClipMinY, GetClipMaxY), rand(0.1, 0.3), 180, WHITE11, 0);
  }
 }

 task TShot2 {
  yield;

  loop {
   loop(4) { yield; }
   SetShotColor(1, 1, 1);
   CreateShot01(rand(GetClipMinX, GetClipMaxX), GetClipMinY, rand(0.1, 0.3), 90, WHITE11, 0);
  }
 }

 task TShot3 {
  yield;

  loop {
   loop(4) { yield; }
   SetShotColor(1, 1, 1);
   CreateShot01(GetClipMinX, rand(GetClipMinY, GetClipMaxX), rand(0.1, 0.3), 0, WHITE11, 0);
  }
 }

}