#TouhouDanmakufu[Stage]
#Title[Unknown Territory Appearance (Demo version)]
#Text[Touhou Kekkaimei ~ Unknown Territory Appearance
When the mystical territory appear in gensokyo.

Version 2.00a
By : Nimble Crossier]
#Image[]
#BGM[]
#Player[FREE]
#BackGround[]
#ScriptVersion[2]

script_stage_main
{

//Load Configulation First
	#include_function".\function\global_manager.txt";
	#include_function".\config.txt";






	// Stage File
	#include_function".\stagefile\stage1.txt";
	#include_function".\stagefile\stage2.txt";
	#include_function".\stagefile\stage3.txt";


	let ng_fscore_temp;

//---------------------------------------------------------------------------------------------------
// Other Task



//---------------------------------------------------------------------------------------------------

	
	task StageTask
	{
		yield;
		ModeSelect;

		alternative(ngc_playstage)
		// Spam stage function list here
		case(0)	{
			Stage01;
			Stage02;
			Stage03;
			}

		case(1)	{	Stage01;		}
		case(2)	{	Stage02;		}
		case(3)	{	Stage03;		}

		ClearStage; 
	}
	



//---------------------------------------------------------------------------------------------------
// Here we go

	@Initialize
	{	
		ExpertEx(false, ngc_continue, ngc_life);
		SetRateScoreSystemEnable(false);
		StageTask();
		SFU_GloLoad;
	}


//---------------------------------------------------	
	@MainLoop
	{
		SFU_GloRun;
		ExtendSystem;
		GrazeBraker;
		yield;
	}



//---------------------------------------------------	
	@BackGround
	{
		//alternative(ngc_playstage)
		alternative(GetCommonDataDefault("ngc_playstage",0))
		case(0) 	{	Stage1BG;	}
		case(1) 	{	Stage1BG;	}
		case(2) 	{	Stage2BG;	}
		case(3) 	{	Stage3BG;	}
	}
	


//---------------------------------------------------	
	@DrawTopObject
	{
	ng_fscore_temp = "FEVER : "~IntString(GetCommonDataDefault("CD_Feverscore",0));
	DrawText(ng_fscore_temp, 40, 447, 11, 255);
	}



//---------------------------------------------------	
	@Finalize
	{
	}
}




	#include_script".\stagefile\modeselect.txt";



