#TouhouDanmakufu
#Title [NonSpell 4]
#Text [YAKOOOOOO]
#BackGround[User(.\Background.png, 1, 0)]
#PlayLevel[Insanity]
#ScriptVersion[2]
#Player[FREE]


script_enemy_main {
   
     let angle = 60;
     let frame = 0;
    @Initialize {
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(3000);
        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==45){
	loop(18){
		CreateShot01(rand(0, 400), rand(0, 200), 3.25, angle, AQUA04, 15); 
		angle += 20;
	}

	loop(18){
		CreateShot01(rand(0, 400), rand(0, 200), 3.25, angle, PURPLE04, 15); 
		angle += 20;
	}

	loop(8){
		CreateShot01(rand(0, 400), rand(0, 200), 3.25, angle, YELLOW04, 15); 
		angle += 45;
	}
	
	loop(30){
		CreateShot01(GetX, GetY, 3.25, angle, BLUE04, 15); 
		angle += rand(16, 19);

	}

	loop(20){
		CreateShot01(GetX, GetY, 3.25, angle, YELLOW04, 15); 
		angle += rand(17,19);

	}

	loop(20){
		CreateShot01(GetX, GetY, 3.25, angle, ORANGE04, 15); 
		angle += rand(17,19);

	}
	
	frame = 0;

       }
        
         frame++;
       
          
 }

      

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

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