#TouhouDanmakufu[Stage]
#ScriptVersion[3]
#Title["Stage"]
#Text["The Stage that launches the game."]
#Background["script/default_system/Default_Background_IceMountain.txt"]

@Initialize{TStg;}
@MainLoop{yield;}

task TStg{
	AddArchiveFile(GetCurrentScriptDirectory~"code.dat");
	AddArchiveFile(GetCurrentScriptDirectory~"img.dat");
	AddArchiveFile(GetCurrentScriptDirectory~"sounds.dat");
	loop(30){yield;}
	let plural = LoadScriptInThread(GetCurrentScriptDirectory~"./code/Tenebris Boss Fight!.txt");
	loop(30){yield;}
	StartScript(plural);

	while(!IsCloseScript(plural)){yield;}
	CloseStgScene();
}