

script_enemy_main
{
    let cx = GetCenterX();
    let cy = GetCenterY();
    let count = 0;


    function IntToString(num) {
        let retStr = "";//߂l
        let numStr = ToString(num);

        let i = 0;
        while (i < length(numStr)) {
            let tmp = numStr[i];
            if (tmp == '.') {	//_ŏI
                break;
            }
            retStr = retStr ~ [tmp];
            i++;
        }
        return retStr;
    }



    @Initialize()
    {
        SetLife(1);
        PlaySE(GetCurrentScriptDirectory~"\se\power34.wav");
    }

    @MainLoop()
    {
        if (count == 90)
        {
            VanishEnemy;
        }
        count++;
    }

    @DrawLoop
    {

        if (GetPlayerType()==REIMU_A || GetPlayerType()==REIMU_B) {
            if (count<=100&&count%5<4) {
                SetFontColor(255,196,196,255,0,0);
                DrawText("NoMiss&NoBomb",GetCenterX()-66,170,20,235);
            }
            SetFontColor(255,196,196,255,0,0);
            DrawText("+100000000",GetCenterX()-58,195,20,235);
        }

        else if (GetPlayerType()==MARISA_A || GetPlayerType()==MARISA_B) {
            if (count<=100&&count%5<4) {
                SetFontColor(255,196,196,255,0,0);
                DrawText("NoMiss&NoBomb",GetCenterX()-66,186,20,235);
            }
            SetFontColor(255,196,196,255,0,0);
            DrawText("+100000000",GetCenterX()-58,211,20,235);
        }

        else {
            if (count<=100&&count%5<4) {
                SetFontColor(255,196,196,255,0,0);
                DrawText("NoMiss&NoBomb",GetCenterX()-66,174,20,235);
            }
            SetFontColor(255,196,196,255,0,0);
            DrawText("+100000000",GetCenterX()-58,199,20,235);
        }
    }

    @Finalize() {}
}

