#TouhouDanmakufu
#Title [Test 3: Special Shots]
#Text [hope]
#ScriptVersion[2]


script_enemy_main {

     #include_function "lib\SHOT_REPLACE\shot_replace.dnh"

     let frame = 0;
    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(3000);
        SetEnemyMarker(true);
        SetTimer(50);
        SetDurableSpellCard;
        MagicCircle(false);
        shotinit;

        LoadGraphic("script\img\ExRumia.png");
        SetTexture("script\img\ExRumia.png");
        SetGraphicRect(0, 0, 63, 63);
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 24);
        SetCollisionB(GetX, GetY, 24);
        let a = 0;

        if(frame==4){
        CreateShot01(GetX, GetY, 7, rand(0, 360), SP02, 0);
        CreateShot01(GetX, GetY, 7, rand(0, 360), SP03, 0);
        CreateShot01(GetX, GetY, 7, rand(0, 360), SP06, 0);
        CreateShot01(GetX, GetY, 7, rand(0, 360), SP09, 0);

        frame = 0;
        }
       
         frame++;
 }
     
     

    @DrawLoop {
        DrawGraphic(GetX, GetY);
    }

    @Finalize{
        DeleteGraphic("script\img\ExRumia.png");
     }
}