#TouhouDanmakufu[Stage]
#Title[Suikama's Super Special Incomplete Contest 6 Entry - Normal]
#Player[FREE]
#Text[lala]
#ScriptVersion[2]

script_stage_main
{
	let frame = 0;
	let scale = 0.5;
	let phase = 0;
	
	let bkg = GetCurrentScriptDirectory ~ "c6/c6shots.png";

	@Initialize
	{
		LoadGraphic(bkg);
	
		SetRateScoreSystemEnable(false);
		//Expert; not yet my son
		
		PlayMusic(GetCurrentScriptDirectory ~ "bgm/1.mp3");
	}
	
	@MainLoop
	{
		if(frame == 400 && phase == 0){
			CreateEnemyBossFromFile(GetCurrentScriptDirectory ~ "pluralN.txt", 0, 0, 0, 0, 0);
			phase = 1;
		}
		if(phase > 0){if(GetEnemyInfo(EnumEnemyEnd, ENEMY_LIFE) == 0){phase++;}}
		if(phase==5){ClearStage;}
		if(frame>350&&frame<500){scale+=2;}
		
		frame++;
	}
	
	@BackGround
	{
		SetTexture(bkg);
		SetGraphicRect(224, 0, 256, 32);
		SetGraphicAngle(0,0,frame);
		SetGraphicScale(scale, scale);
		DrawGraphic(420-frame+3*sin(frame),420-frame+10*cos(frame*3));
	}
	
	@Finalize
	{
	}

}