#e
#Title[ugҗ-Easy-v]
#Text[G@Ĺu}Gx[En[v܂́uv]
#ScriptVersion[2]
#PlayLevel[Easy]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let name = "ugҗ-Easy-v";

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

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

  TMain;
 }

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

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
  TLaser;
 }

 task TShot {
  yield;
 }

 task TLaser {
  yield;

  loop {
   loop(30) { yield; }
   CreateLaser01(GetClipMinX, rand(GetClipMinY, GetClipMaxY), rand(0.5, 2), 0, 30, 30, WHITE11, 0);
  }
 }

}