2 =====================
\r
6 =====================
\r
9 static char *ParmStrings[] = {"baby","easy","normal","hard",""};
\r
11 void DemoLoop (void)
\r
13 static int LastDemo;
\r
19 // check for launch from ted
\r
26 for (i = 1;i < _argc;i++)
\r
28 if ( (level = US_CheckParm(_argv[i],ParmStrings)) != -1)
\r
30 gamestate.difficulty=level;
\r
36 gamestate.episode = tedlevelnum/10;
\r
37 gamestate.mapon = tedlevelnum%10;
\r
39 gamestate.episode = 0;
\r
40 gamestate.mapon = tedlevelnum;
\r
52 // nsize = (long)40*1024;
\r
53 // MM_GetPtr(&nullblock,nsize);
\r
77 StartCPMusic(INTROSONG);
\r
97 CA_CacheGrChunk (TITLEPALETTE);
\r
99 CA_CacheGrChunk (TITLE1PIC);
\r
100 VWB_DrawPic (0,0,TITLE1PIC);
\r
101 UNCACHEGRCHUNK (TITLE1PIC);
\r
103 CA_CacheGrChunk (TITLE2PIC);
\r
104 VWB_DrawPic (0,80,TITLE2PIC);
\r
105 UNCACHEGRCHUNK (TITLE2PIC);
\r
106 VW_UpdateScreen ();
\r
107 VL_FadeIn(0,255,grsegs[TITLEPALETTE],30);
\r
109 UNCACHEGRCHUNK (TITLEPALETTE);
\r
111 CA_CacheScreen (TITLEPIC);
\r
112 VW_UpdateScreen ();
\r
115 if (IN_UserInput(TickBase*15))
\r
121 CA_CacheScreen (CREDITSPIC);
\r
124 if (IN_UserInput(TickBase*10))
\r
131 VW_UpdateScreen ();
\r
134 if (IN_UserInput(TickBase*10))
\r
142 PlayDemo (LastDemo++%4);
\r
147 if (playstate == ex_abort)
\r
149 StartCPMusic(INTROSONG);
\r
155 if (Keyboard[sc_Tab] && MS_CheckParm("goobers"))
\r
157 if (Keyboard[sc_Tab] && MS_CheckParm("debugmode"))
\r
161 US_ControlPanel (0);
\r
163 if (startgame || loadedgame)
\r
167 StartCPMusic(INTROSONG);
\r