Browse Source

Implement argc (-d) for Player 4

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

BIN
sdljpd

Binary file not shown.

6
sdljpd.c

@ -615,7 +615,7 @@ int main( int argc, char **argv )
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)
{
case 'h': {
@ -639,6 +639,10 @@ int main( int argc, char **argv )
case 'c':
strcpy(pl3,optarg);
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");

6
sdljpd.c~

@ -559,21 +559,21 @@ void draw_sdl (void)
scorebuf = score[1];
sprintf(buf,"%i",scorebuf);
text = TTF_RenderText_Blended(font,buf,color);
drect.x = (365) + 65;
drect.x = (250) + 65;
SDL_BlitSurface(text,NULL,surface,&drect);
SDL_FreeSurface(text);
scorebuf = score[2];
sprintf(buf,"%i",scorebuf);
text = TTF_RenderText_Blended(font,buf,color);
drect.x = (2*365) + 65;
drect.x = (2*250) + 65;
SDL_BlitSurface(text,NULL,surface,&drect);
SDL_FreeSurface(text);
scorebuf = score[3];
sprintf(buf,"%i",scorebuf);
text = TTF_RenderText_Blended(font,buf,color);
drect.x = (3*365) + 65;
drect.x = (3*250) + 65;
SDL_BlitSurface(text,NULL,surface,&drect);
SDL_Flip(surface);

Loading…
Cancel
Save