
#ScriptVersion[3]
#Title["Collection Battle By NoobDanmaku"]
#Text[""]
#System["./NoobSystem/Default_System2.txt"]
#Background["./NoobSystem/Default_Background_IceMountain.txt"]


@Initialize
{
	SetPlayerLife(13);
	TPlural();
}

@MainLoop
{
	yield;
}

@Finalize
{
}


task TPlural
{
	let dir = GetCurrentScriptDirectory();
	let bgm = GetCurrentScriptDirectory ~ "Novum.mp3";
	let sound = ObjSound_Create;
	ObjSound_Load(sound,bgm);
	ObjSound_SetSoundDivision(sound,SOUND_BGM);
	ObjSound_SetLoopEnable(sound,true);
	ObjSound_SetRestartEnable(sound,true);
	ObjSound_SetLoopTime(sound,12.5,185);
	ObjSound_Play(sound);
	//通常はボスシーンを1つだけ作成します。
	let obj = ObjEnemyBossScene_Create();
	ObjEnemyBossScene_Add(obj, 0, dir ~ "Mima01.txt");
	ObjEnemyBossScene_Add(obj, 0, dir ~ "MimaSpell01.txt");
	ObjEnemyBossScene_Add(obj, 1, dir ~ "MimaSpell02.txt");
	ObjEnemyBossScene_Add(obj, 2, dir ~ "Akyu01.txt");
	ObjEnemyBossScene_Add(obj, 2, dir ~ "AkyuSpell01.txt");
	ObjEnemyBossScene_Add(obj, 3, dir ~ "AkyuSpell02.txt");
	ObjEnemyBossScene_Add(obj, 4, dir ~ "Yuka01.txt");
	ObjEnemyBossScene_Add(obj, 4, dir ~ "YukaSpell01.txt");
	ObjEnemyBossScene_Add(obj, 5, dir ~ "YukaSpell02.txt");
	ObjEnemyBossScene_LoadInThread(obj);
	ObjEnemyBossScene_Regist(obj);

	//敵ボスシーンが終了するまで待機
	while(!Obj_IsDeleted(obj))
	{
		yield;
	}
	descent(i in 0..300)
	{
		ObjSound_SetVolumeRate(sound,i/3);
		yield;
	}
    //スクリプト終了
	CloseScript(GetOwnScriptID());
}

