#TouhouDanmakufu[Stage]
#ScriptVersion[3]
#Title["Who Prefers Only Purest Tastes"]
#Text["For LoCAA8: Pure Gensokyo."]

let GCSD = GetCurrentScriptDirectory;

@Initialize{
	
	AddArchiveFile(GCSD~"img.dat");
	AddArchiveFile(GCSD~"sounds.dat");
	AddArchiveFile(GCSD~"code.dat");
	
	SetPlayerLife(10);
	SetPlayerSpell(3);
	StartScript(LoadScript(GCSD ~ "./code/BG.txt"));
	StartScript(LoadScript(GCSD ~ "./code/SoundLib.txt"));
	StartScript(LoadScript(GCSD ~ "./code/SpellBG.txt"));
	StartScript(LoadScript(GCSD ~ "./code/EffectScript.txt"));
	StartScript(LoadScript(GCSD ~ "./code/ManageBGM.txt"));
	StartShotScript(GCSD ~ "./code/ShotScript.dnh");
	
	StartPlural;
	
}

@MainLoop{yield;}

task StartPlural{
	
	let plural = LoadScript(GCSD~"./code/Plural.txt");
	StartScript(plural);
	while(!IsCloseScript(plural)){yield;}
	CloseStgScene;
	
}