#TouhouDanmakufu[Stage]
#Title[Ijiyatsu True Final Boss - Sapz]
#Player[.\player\ZengarB.txt]
#Image[.\img\gutsy.png]
#Text[HIGHEST THREAT APPROACHING
BEE PRAYING]
#ScriptVersion[2]

script_stage_main
{
	let clouds = GetCurrentScriptDirectory ~ "img\darkclouds.jpg";
	let frame = 0;
	let phase = 0;
	let obj;

	@Initialize
	{
		LoadGraphic(clouds);
		SetRateScoreSystemEnable(false);
		Expert;
		Slow(0);
	}
	
	@MainLoop
	{
		if(phase==0)
		{
			CreateEnemyBossFromFile(GetCurrentScriptDirectory ~ "Sapz.txt", GetCenterX, 0, 0, 0, 0);
			phase=1;
		}
		if(phase<7)
		{
			CreateEnemyBossFromFile(GetCurrentScriptDirectory ~ "what.txt", GetCenterX, 0, 0, 0, 0);
			if(GetEnemyInfo(EnumEnemyEnd, ENEMY_LIFE) == 0)
			{
				phase++;
			}
		}
		if(phase==7)
		{
			ClearStage;
		}
		frame++;
	}
	
	@BackGround
	{
		SetTexture(clouds);
		SetGraphicRect(0, 0, 1024, 768);
		SetGraphicAngle(0, 0, frame*1);
		DrawGraphic(GetCenterX, GetCenterY);
	}
	
	@Finalize
	{
	}

}