+++ /dev/null
-/*\r
-=====================\r
-=\r
-= DemoLoop\r
-=\r
-=====================\r
-*/\r
-\r
-static char *ParmStrings[] = {"easy","normal","hard",""};\r
-\r
-void DemoLoop (void)\r
-{\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// main game cycle\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
- displayofs = bufferofs = 0;\r
- VW_Bar (0,0,320,200,0);\r
- VW_SetScreen(0,0);\r
-\r
-//\r
-// Read in all the graphic images needed for the title sequence\r
-//\r
- VW_WaitVBL(1);\r
- IN_ReadControl(0,&control);\r
-\r
-// set EASYMODE\r
-//\r
- if (stricmp(_argv[2], "1") == 0)\r
- EASYMODEON = true;\r
- else\r
- EASYMODEON = false;\r
-\r
-// restore game\r
-//\r
- if (stricmp(_argv[3], "1") == 0)\r
- {\r
- VW_FadeOut();\r
- bufferofs = displayofs = 0;\r
- VW_Bar(0,0,320,200,0);\r
- if (GE_LoadGame())\r
- {\r
- loadedgame = true;\r
- playstate = ex_loadedgame;\r
- Keyboard[sc_Enter] = true;\r
- VW_Bar(0,0,320,200,0);\r
- ColoredPalette();\r
- }\r
- VW_Bar(0,0,320,200,0);\r
- VW_FadeIn();\r
- }\r
-\r
- // Play a game\r
- //\r
- restartgame = gd_Normal;\r
- NewGame();\r
- GameLoop();\r
-}\r