//Background
GRlightray=("\script\Images\3DBackground\Lightray.png");

BGnightmare1=("\script\Images\3DBackground\Nightmare\1.png");
BGnightmare2=("\script\Images\3DBackground\Nightmare\2.png");
BGnightmare3=("\script\Images\3DBackground\Nightmare\3.png");
BGnightmare4=("\script\Images\3DBackground\Nightmare\4.png");
BGnightmare5=("\script\Images\3DBackground\Nightmare\5.png");

BGend=("\script\Images\3DBackground\Wall.png");

SetCommonData("InEvent",0);
SetCommonData("BackgroundStop",0);
SetCommonData("Stage",8);
SetCommonData("PlayMusic",1);

bgphase=1;
hscroll=0; vscroll=0; scroll=0;
scrollon=1; scrollspeed=1;

newviewx=0; newviewy=0; viewmovetimexy=5;
newviewh=0; newviewv=0; viewmovetimehv=5;
basev=100;

time=0; frame=0;
phase=1; stagephase=1;

CreateEnemyFromFile("script\Functions\fadein.txt",0,0,0,0,0);
CreateEnemyFromFile("script\Functions\itemline.txt",0,0,0,0,0);