#TouhouDanmakufu
#Title [Spell 2]
#Text [Spamz]
#BackGround[User(.\Background.png, 1, 0)]
#PlayLevel[Hard]
#ScriptVersion[2]
#Player[FREE]


script_enemy_main {

     let angle = 0;
     let frame = 0;
    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(1000);
        SetDamageRate(35,35);
        SetEnemyMarker(true);
        CutIn(YOUMU, "Beloved Peachy Purple - Hard", "script\img\bowser_paper[1].png", 0, 0, 200, 600);
        SetScore(90000);
        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==7){
	CreateShot01(GetX, GetY, 3, rand(0, 360), PURPLE01, 60);
	CreateShot01(GetX, GetY, 4, rand(0, 360), PURPLE03, 60);
	CreateShot01(GetX, GetY, 3, rand(0, 360), PURPLE05, 60);
	CreateShot01(GetX, GetY, 4, rand(0, 360), PURPLE23, 60);
	CreateShot01(GetX, GetY, 3, rand(0, 360), PURPLE31, 60);
	CreateShot01(GetX, GetY, 4, rand(0, 360), PURPLE02, 60);
	CreateShot01(GetX, GetY, 3, rand(0, 360), PURPLE04, 60);
	CreateShot01(GetX, GetY, 4, rand(0, 360), PURPLE12, 60);
	CreateShot01(GetX, GetY, 3, rand(0, 360), PURPLE11, 60);


 	frame = 0;
		
        }
        
         frame++;
       
          
 }

      

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

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