e952a6c319a042ab3bd5d5bc39ba38296da26e4c
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <string.h>
53 #define LT_DELAY 8
54 #define LT_HITTIME 6
56 #define GETIME 1092
58 byte transdraw;
59 byte _2pl;
60 byte g_dm;
62 byte g_exit;
65 dword g_time;
70 byte cheat;
89 }
94 }
96 }
110 //MUS_start(music_time);
112 }
134 //MUS_start(music_time);
136 }
138 #define GGAS_TOTAL (MN__LAST-MN_DEMON+16+10)
164 }
167 /*
168 switch(g_map) {
169 case 3: return A8_start("FALL");
170 case 4: return A8_start("KORIDOR");
171 case 5: return A8_start("SKULL");
172 case 6: return A8_start("TORCHES");
173 case 7: return A8_start("CACO");
174 case 8: return A8_start("DARTS");
175 case 9: return A8_start("FISH");
176 case 10: return A8_start("TRAP");
177 case 11: return A8_start("JAIL");
178 case 12: return A8_start("MMON1");
179 case 13: return A8_start("TOWER");
180 case 14: return A8_start("SAPOG");
181 case 15: return A8_start("SWITCH");
182 case 16: return A8_start("ACCEL");
183 case 17: return A8_start("MEAT");
184 case 18: return A8_start("LEGION");
185 case 19: return A8_start("CLOUDS");
186 }
187 */
189 }
193 /*
194 switch(g_map) {
195 case 1: return A8_start("TRUBA");
196 case 10: return A8_start("GOTCHA");
197 }
198 */
200 }
204 /*
205 if(g_trans) {
206 if(g_transt==0) {
207 V_setscr(NULL);memcpy(fx_scr1,scra,64000);
208 V_setscr(fx_scr2);
209 transdraw=1;G_draw();transdraw=0;
210 V_setscr(scrbuf);
211 }
212 FX_trans1(g_transt*2);
213 V_copytoscr(0,320,0,200);
214 if(++g_transt>32) {
215 g_trans=0;
216 }
217 return;
218 g_trans=0;
219 }
229 }
230 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
238 }
240 }
241 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
246 }
257 #ifdef DEMO
260 }
261 #else
268 }
269 }
270 #endif
272 }
284 }
286 }
319 }
326 }
328 inter:
333 }
340 }
347 }
351 }
353 #ifdef DEMO
355 #endif
356 }
367 }
372 }