Browse Source

Add y to show answer without changing score

main
h3ndrik 13 years ago
parent
commit
5753fdd720
  1. BIN
      sdljpd
  2. 7
      sdljpd.c
  3. 6
      sdljpd.c~

BIN
sdljpd

Binary file not shown.

7
sdljpd.c

@ -867,6 +867,13 @@ int main( int argc, char **argv )
inp = TRUE; inp = TRUE;
break; break;
/* Show Answer without changing score */
case SDLK_y:
lockbz = TRUE;
enp = FALSE;
inp = TRUE;
break;
/* Wrong Answer */ /* Wrong Answer */
case SDLK_DELETE: case SDLK_DELETE:
score[plselect]=score[plselect]-pkt[ypos]; score[plselect]=score[plselect]-pkt[ypos];

6
sdljpd.c~

@ -615,7 +615,7 @@ int main( int argc, char **argv )
strcpy(xpfp,"level.txt"); strcpy(xpfp,"level.txt");
while (( option = getopt(argc, argv, "hf:a:b:c:")) >= 0) while (( option = getopt(argc, argv, "hf:a:b:c:d:")) >= 0)
switch (option) switch (option)
{ {
case 'h': { case 'h': {
@ -639,6 +639,10 @@ int main( int argc, char **argv )
case 'c': case 'c':
strcpy(pl3,optarg); strcpy(pl3,optarg);
break; break;
case 'd':
strcpy(pl4,optarg);
break;
} }
printf("\n \033[36m sdljpd -- jeopady on steroids \n Copyright (c) 2005 Frederick Bullik <Frederick.Bullik@gmx.de>\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License\n as published by the Free Software Foundation; either version 2\n of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software \n Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\033[m \n\n"); printf("\n \033[36m sdljpd -- jeopady on steroids \n Copyright (c) 2005 Frederick Bullik <Frederick.Bullik@gmx.de>\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License\n as published by the Free Software Foundation; either version 2\n of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software \n Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\033[m \n\n");

Loading…
Cancel
Save