#e
#Title[ؕuEFU[RbN-Easy-v]
#Text[G@́up`[Em[bWv]
#ScriptVersion[2]
#PlayLevel[Easy]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let name = "ؕuEFU[RbN-Easy-v";

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

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

  TMain;
 }

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

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
 }

 task TShot {
  let x = 0;
  yield;

  loop {
   loop(10) { yield; }
   CreateShotA(1, GetX, GetY, 0);
   SetShotDataA(1, 0, rand(0.5, 1), rand(-135, -45), 0, 0, 1, GREEN11);
   SetShotDataA(1, 120, rand(0.5, 1), rand(45, 135), 0, 0, 1, GREEN11);
   SetShotDataA(1, 420, rand(0.5, 1), rand(-45, 225), 0, 0, 1, GREEN11);
   FireShot(1);
  }
 }

}