#TouhouDanmakufu
#Title [Spell Final]
#Text [The end]
#BackGround[User(.\Background.png, 1, 0)]
#PlayLevel[Normal]
#ScriptVersion[2]
#Player[FREE]


script_enemy_main {

     let move = 0;
     let angle = 0;
     let frame = 0;
    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(1000);
        SetDamageRate(35, 35);
        SetEnemyMarker(true);
        CutIn(YOUMU, "The Penultimate - Normal", "script\img\bowser_paper[1].png", 0, 0, 200, 600);
        SetScore(75000);
        SetTimer(50);
        SetDurableSpellCard;
        MagicCircle(true);

        LoadGraphic("script\img\bowser_paper[1].png");
        SetTexture("script\img\bowser_paper[1].png");
        SetGraphicRect(0, 0, 256, 256);
    }

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

        if(frame==2){

 		CreateShotA(1, GetX, GetY, 30);
		SetShotDataA(1, 30, 5, rand(0, 360), -0.15, 0.005, 3.5, ORANGE23);
		SetShotKillTime(1, 600);
		FireShot(1);


		CreateShotA(2, GetX, GetY, 30);
		SetShotDataA(2, 30, 5, rand(0, 360), 0.15, 0.005, 3.5, RED23);
		SetShotKillTime(1, 600);
		FireShot(2);		
		
        frame = 0;

        }
        
         frame++;
       
          
 }

      

    @DrawLoop {
        DrawGraphic(GetX, GetY);
        SetGraphicScale(0.45,0.45);
    }

    @Finalize{
        DeleteGraphic("script\img\bowser_paper[1].png");
     }
}
