#TouhouDanmakufu
#Title [Spell 1]
#Text [RINGZ]
#BackGround[User(.\Background.png, 1, 0)]
#PlayLevel[Normal]
#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, "Rings of Doom - 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==70){
	loop(35){
		CreateShot01(GetX, GetY, 3, angle, AQUA23, 12);
		angle += 360/35;
	}

	loop(40){
		CreateShot01(GetX + 75*cos(angle), GetY + 75*sin(angle), 3, angle+rand(0, 360), BLUE32, 12);
		angle += 360/40;
	}	

	frame = 0;
}
        
         frame++;
       
          
 }

      

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

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