
#東方弾幕風[Stage]
#Title[伊吹萃香の石あそび]
#Text[]
#Image[]
#BackGround[User()]
#BGM[]
#Player[.\player\player_main.txt]
#ScriptVersion[2]


script_stage_main{



@Initialize{
//CreateDebugWindow();

	SetDefaultStatusVisible(false);
	SetClearFrameEffectEnable(false);

	AddArchiveFile(GetCurrentScriptDirectory() ~ "\bgm\bgm.dat");

	initialize_REMY_TaskStick();
	once_system_LoadResource();
	main_MainRoutine();
}



@MainLoop{
	yield;
}

@Finalize{
	once_system_DeleteResource();
	once_system_LoadEndingResource();

}

let debug = true;
let DEBUG_STRING = "";
@DrawTopObject{
/*
	if(stage_GetPracticeText() != ""){
		SetFontColor(256,256,256, 256,256,256);
		DrawText(stage_GetPracticeText(), 50,50,14,255);
	}

	if(debug){
		DrawText(DEBUG_STRING, 50,100,12,255);
	}
*/
}

task main_MainRoutine(){


	loop(10){yield;}

	system_Title();

	local{
		once_system_TaskWeightMain();
	}

	local{
		once_system_CreateSphere();
		once_system_TaskSphereMain();
	}

	local{
		once_system_TaskGameOver();
		//once_system_TaskEnemyShotMain();
	}

	local{
		once_BackGroundGraphic();
		//once_BackGroundGraphicCloud(-2);
		once_BackGroundGraphicCloud(12,90,false);
	}

	local{
		once_system_TaskLogoMain();
		once_system_TaskLifeMain();
		once_system_TaskScoreMain();
		once_system_TaskEnemyLifeMain();
		once_system_TaskLifeItemMain();
	}

	local{
		system_TaskScoreRateCheck();
	}

	stage_stage01();

}//end task


#include_function".\system\include_system.txt"
#include_function".\stage\include_stage.txt"
#include_function".\lib\include_std.txt"
#include_function".\system\enemy_path.txt"

}//end script
