#東方弾幕風
#Title[蝶符「バタフライスクリュー」]
#Text[カットインなし]
#ScriptVersion[2]

script_enemy_main {
    let imgBoss   = "script\img\ExRumia.png";
    let frame     =  0;
    let angleBase = 90;

    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 150);
        SetLife(5000);

        LoadGraphic(imgBoss);
        SetTexture(imgBoss);
        SetGraphicRect(0, 0, 63, 63);
    }

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

        frame++;
        if(frame == 10) {
            CreateShot01(GetX, GetY, 1, angleBase , WHITE22, 0);
            CreateShot01(GetX, GetY, 1, angleBase +20, RED22, 0);
            CreateShot01(GetX, GetY, 1, angleBase +90, ORANGE22, 0);
            CreateShot01(GetX, GetY, 1, angleBase +110, YELLOW22, 0);
            CreateShot01(GetX, GetY, 1, angleBase -180, GREEN22, 0);
            CreateShot01(GetX, GetY, 1, angleBase -200, AQUA22, 0);
            CreateShot01(GetX, GetY, 1, angleBase -90, BLUE22, 0);
            CreateShot01(GetX, GetY, 1, angleBase -70, PURPLE22, 0);

            angleBase += 8;
            frame = 0;

      
         }
     
    }


    @DrawLoop {
        DrawGraphic(GetX, GetY);
    }

    @Finalize {
        DeleteGraphic(imgBoss);
    }
}
    