let GCSD = GetCurrentScriptDirectory;
let currentstage = [-1, 0];
#include_function ".\files.txt"
#include_function ".\infolist.txt"
#include_function ".\lib\functions.txt"
#include_function ".\experiment.txt"
#include_function ".\bonus.txt"
#include_function ".\menus.txt"
#include_function ".\reset.txt"
#include_function ".\update.txt"
#include_function ".\Stage.txt"
#include_function ".\item.txt"

sub InitializeGame{
	PlayMusic(menubgm);
	LoadImages;
	mainmenu;
	SetCommonData("STAGESTART", "FALSE");
	SetCommonData("RESTARTPLACEMENT", "FALSE");
	SetCommonData("MONEYGET", 0);
	SetCommonData("ITEMCOL", [0, 0]);
	SetCommonData("ITEMCOLB", "FALSE");
	SetCommonData("HELPER", "NONE");
	ExpertEx(false, 0, 1);
	LoadCommonData;
	ItemHandling;
}