95fbbf660dc7fbfc2ad2b8019314c5171d332d58
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 <string.h>
26 #include <stdlib.h>
44 #include <sys/stat.h>
46 #define QSND_NUM 14
52 byte _warp;
56 };
69 #ifndef DEMO
71 #endif
86 ""
87 };
92 PLR1,PLR2
94 COOP,DM
98 QUIT,CANCEL
100 ENDGM,CANCEL
102 SVOLM,MVOLM
104 PL1CM,PL2CM
106 GAMMAM
111 };
113 menu_t main_mnu={
139 };
158 }
159 }
162 // TODO fix this
163 /*
164 int r,len;
165 snd_t *p;
166 byte *d;
168 if((r=F_findres(nm))==-1) return;
169 if(!(p=malloc((len=F_getreslen(r))+16))) return;
170 p->len=len;p->rate=11000;
171 p->lstart=p->llen=0;
172 GMV_stop();
173 F_loadres(r,p+1,0,len);
174 for(d=(byte*)(p+1);len;--len,++d) *d^=128;
175 voc=p;
176 voc_ch=S_play(voc,-1,1024,255);
177 */
178 }
183 //V_setrect(0,SCRW,0,SCRH);V_clr(0,SCRW,0,SCRH,0);//V_setrect(0,320,0,200);V_clr(0,320,0,200,0);
184 //if(_2pl) {V_setrect(SCRW-120,120,0,SCRH);w_o=0;Z_clrst();w_o=SCRH/2;Z_clrst();}//if(_2pl) {V_setrect(200,120,0,200);w_o=0;Z_clrst();w_o=100;Z_clrst();}
185 //else {V_setrect(SCRW-120,120,0,SCRH);w_o=0;Z_clrst();}//else {V_setrect(200,120,50,100);w_o=50;Z_clrst();}
186 //pl1.drawst=pl2.drawst=0xFF;V_setrect(0,SCRW,0,SCRH);//V_setrect(0,320,0,200);
187 }
188 }
212 }
226 }
230 }
304 #ifndef DEMO
307 #endif
334 }
335 }
339 byte ch;
352 //{KEY_UNDERSCORE, '_'},
381 };
387 i++;
388 }
390 }
393 /*
394 static int num=1;
395 char fn[100];//...
396 #ifndef WIN32
397 char *e = getenv("HOME");
398 strncpy(fn, e, 60);
399 sprintf(&fn[strlen(fn)],"/.doom2d-rembo",num);
400 mkdir(fn, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
401 sprintf(&fn[strlen(fn)],"/shot%04d.bmp",num);
402 #else
403 sprintf(fn,"shot%04d.bmp",num);
404 #endif
405 SDL_SaveBMP(screen, fn);
406 ++num;
407 */
408 }
411 byte c;
416 }
422 }
440 }
450 }
451 }
453 }
463 }
470 }
477 }
484 }
491 }
497 }
505 }
508 }
517 }
520 }
531 }
532 }
545 }
546 }
552 }
558 }
564 }
566 }
567 }
570 }
579 }
581 }
582 }
583 }
586 #ifndef DEMO
591 };
598 }
599 #endif
610 }