]> 4ch.mooo.com Git - 16.git/blob - src/lib/hp/democ6.c
going to start wolf3d core core (loop with input only) work soon. I was mostly brains...
[16.git] / src / lib / hp / democ6.c
1 /*\r
2 =====================\r
3 =\r
4 = DemoLoop\r
5 =\r
6 =====================\r
7 */\r
8 \r
9 static  char *ParmStrings[] = {"easy","normal","hard",""};\r
10 \r
11 void    DemoLoop (void)\r
12 {\r
13 \r
14 /////////////////////////////////////////////////////////////////////////////\r
15 // main game cycle\r
16 /////////////////////////////////////////////////////////////////////////////\r
17 \r
18         displayofs = bufferofs = 0;\r
19         VW_Bar (0,0,320,200,0);\r
20         VW_SetScreen(0,0);\r
21 \r
22 //\r
23 // Read in all the graphic images needed for the title sequence\r
24 //\r
25                 VW_WaitVBL(1);\r
26                 IN_ReadControl(0,&control);\r
27 \r
28 //      set EASYMODE\r
29 //\r
30         if (stricmp(_argv[2], "1") == 0)\r
31                 EASYMODEON = true;\r
32         else\r
33                 EASYMODEON = false;\r
34 \r
35 // restore game\r
36 //\r
37         if (stricmp(_argv[3], "1") == 0)\r
38         {\r
39                 VW_FadeOut();\r
40                 bufferofs = displayofs = 0;\r
41                 VW_Bar(0,0,320,200,0);\r
42                 if (GE_LoadGame())\r
43                 {\r
44                         loadedgame = true;\r
45                         playstate = ex_loadedgame;\r
46                         Keyboard[sc_Enter] = true;\r
47                         VW_Bar(0,0,320,200,0);\r
48                         ColoredPalette();\r
49                 }\r
50                 VW_Bar(0,0,320,200,0);\r
51                 VW_FadeIn();\r
52         }\r
53 \r
54         // Play a game\r
55         //\r
56                 restartgame = gd_Normal;\r
57                 NewGame();\r
58                 GameLoop();\r
59 }\r