#東方弾幕風[Plural]
#ScriptVersion[3]
#Title["Foxigami's RaNGE #21 Entry"]
#System[".\Foxi's System.txt"]
//#BGM[".\bgm\boss.mp3"]

#include".\bgm functions.txt"

@Initialize
{
	playBGM();
	TPlural();
}

@MainLoop
{
	yield;
}

@Finalize
{
}


task TPlural
{
	let dir = GetCurrentScriptDirectory();

	let obj = ObjEnemyBossScene_Create();
	SetPlayerLife(5);
	ObjEnemyBossScene_Add(obj, 0, dir ~ "N1.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "S1.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "N2.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "S2.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "N3.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "S3.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "N4.txt");
	resetVol();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "S4.txt");
	resetVol();
	ObjEnemyBossScene_LoadInThread(obj);
	ObjEnemyBossScene_Regist(obj);


	while(!Obj_IsDeleted(obj))
	{
		yield;
	}

    //スクリプト終了
	CloseScript(GetOwnScriptID());
}