diff --git a/sdljpd b/sdljpd index 75060da..1f7b5be 100755 Binary files a/sdljpd and b/sdljpd differ diff --git a/sdljpd.c b/sdljpd.c index 75b5dc1..080ab69 100644 --- a/sdljpd.c +++ b/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 \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"); diff --git a/sdljpd.c~ b/sdljpd.c~ index 4833840..75b5dc1 100644 --- a/sdljpd.c~ +++ b/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);