8027592605e60c8454e48d4dc2afe1373ac100a6
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>
46 #include <SDL_keysym.h>
48 #define LT_DELAY 8
49 #define LT_HITTIME 6
51 #define GETIME 1092
70 //void setgamma(int);
82 dword g_time;
102 }
107 }
109 }
126 }
129 }
146 }
150 }
158 }
161 }
163 }
178 }
202 }
204 #define GGAS_TOTAL (MN__LAST-MN_DEMON+16+10)
230 }
233 /*
234 switch(g_map) {
235 case 3: return A8_start("FALL");
236 case 4: return A8_start("KORIDOR");
237 case 5: return A8_start("SKULL");
238 case 6: return A8_start("TORCHES");
239 case 7: return A8_start("CACO");
240 case 8: return A8_start("DARTS");
241 case 9: return A8_start("FISH");
242 case 10: return A8_start("TRAP");
243 case 11: return A8_start("JAIL");
244 case 12: return A8_start("MMON1");
245 case 13: return A8_start("TOWER");
246 case 14: return A8_start("SAPOG");
247 case 15: return A8_start("SWITCH");
248 case 16: return A8_start("ACCEL");
249 case 17: return A8_start("MEAT");
250 case 18: return A8_start("LEGION");
251 case 19: return A8_start("CLOUDS");
252 }
253 */
255 }
259 /*
260 switch(g_map) {
261 case 1: return A8_start("TRUBA");
262 case 10: return A8_start("GOTCHA");
263 }
264 */
266 }
271 /*
272 if(g_trans) {
273 if(g_transt==0) {
274 V_setscr(NULL);memcpy(fx_scr1,scra,64000);
275 V_setscr(fx_scr2);
276 transdraw=1;G_draw();transdraw=0;
277 V_setscr(scrbuf);
278 }
279 FX_trans1(g_transt*2);
280 V_copytoscr(0,320,0,200);
281 if(++g_transt>32) {
282 g_trans=0;
283 }
284 return;
285 g_trans=0;
286 }
296 }
306 }
312 }
323 #ifdef DEMO
326 }
327 #else
328 if(keys[SDLK_SPACE] || keys[SDLK_RETURN] || keys[SDLK_KP_ENTER])//if(keys[0x39] || keys[0x1C] || keys[0x9C])
331 }
332 #endif
334 }
346 }
348 }
382 }
389 }
391 inter:
396 }
407 }
411 }
413 #ifdef DEMO
415 #endif
416 }
427 }
432 }