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>
47 #include <SDL_keysym.h>
49 #define LT_DELAY 8
50 #define LT_HITTIME 6
52 #define GETIME 1092
86 dword g_time;
106 }
111 }
113 }
130 }
133 }
150 }
154 }
162 }
165 }
167 }
176 // if(_2pl) {w_o=0;Z_clrst();w_o=SCRH/2;Z_clrst();}//if(_2pl) {w_o=0;Z_clrst();w_o=100;Z_clrst();}
177 // else {w_o=0;Z_clrst();}//else {w_o=50;Z_clrst();}
187 }
198 // if(_2pl) {w_o=0;Z_clrst();w_o=SCRH/2;Z_clrst();}//if(_2pl) {w_o=0;Z_clrst();w_o=100;Z_clrst();}
199 // else {w_o=0;Z_clrst();}//else {w_o=50;Z_clrst();}
216 }
218 #define GGAS_TOTAL (MN__LAST-MN_DEMON+16+10)
244 }
247 /*
248 switch(g_map) {
249 case 3: return A8_start("FALL");
250 case 4: return A8_start("KORIDOR");
251 case 5: return A8_start("SKULL");
252 case 6: return A8_start("TORCHES");
253 case 7: return A8_start("CACO");
254 case 8: return A8_start("DARTS");
255 case 9: return A8_start("FISH");
256 case 10: return A8_start("TRAP");
257 case 11: return A8_start("JAIL");
258 case 12: return A8_start("MMON1");
259 case 13: return A8_start("TOWER");
260 case 14: return A8_start("SAPOG");
261 case 15: return A8_start("SWITCH");
262 case 16: return A8_start("ACCEL");
263 case 17: return A8_start("MEAT");
264 case 18: return A8_start("LEGION");
265 case 19: return A8_start("CLOUDS");
266 }
267 */
269 }
273 /*
274 switch(g_map) {
275 case 1: return A8_start("TRUBA");
276 case 10: return A8_start("GOTCHA");
277 }
278 */
280 }
285 /*
286 if(g_trans) {
287 if(g_transt==0) {
288 V_setscr(NULL);memcpy(fx_scr1,scra,64000);
289 V_setscr(fx_scr2);
290 transdraw=1;G_draw();transdraw=0;
291 V_setscr(scrbuf);
292 }
293 FX_trans1(g_transt*2);
294 V_copytoscr(0,320,0,200);
295 if(++g_transt>32) {
296 g_trans=0;
297 }
298 return;
299 g_trans=0;
300 }
310 }
320 }
326 }
337 #ifdef DEMO
340 }
341 #else
342 if(keys[SDLK_SPACE] || keys[SDLK_RETURN] || keys[SDLK_KP_ENTER])//if(keys[0x39] || keys[0x1C] || keys[0x9C])
345 }
346 #endif
348 }
360 }
362 }
396 }
403 }
405 inter:
410 }
421 }
425 }
427 #ifdef DEMO
429 #endif
430 }
441 }
446 }