#TouhouDanmakufu
#Title [Spell 6]
#Text [WHY AHHHHHHPLBTHHH]
#BackGround[User(.\Background.png, 1, 0)]
#PlayLevel[Blasphemous]
#ScriptVersion[2]
#Player[FREE]

script_enemy_main {

     let frame2 = 0;
     let angle2 = 60;
     let angle = 60;
     let frame = 0;
    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(1000);
        SetDamageRate(35, 35);
        CutIn(YOUMU,"Flamethrower - Blasphemous", "script\img\bowser_paper[1].png", 0, 0, 200, 600);
        SetScore(90000); 
        SetEnemyMarker(true);
        SetTimer(50);
        SetDurableSpellCard;
        MagicCircle(false);

        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==70){

        loop(60){
		CreateShot01( GetX, GetY, 4, angle, RED32, 60);
                angle += 360/60;
	} 

	frame = 0;

        } 

	if(frame2==60){
		CreateLaserB(1, 1000, 15, YELLOW01, 0);
        	SetLaserDataB(1, 0, 0, 50, 0, 75, 2, 0, 1);
      		SetShotKillTime(1, 3000);
        	FireShot(1);
	} 
                   frame++;
		frame2++;   
 
 }

      

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

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