From 78617b0dbecc866b312416611b188bb663159ff9 Mon Sep 17 00:00:00 2001 From: h3ndrik Date: Mon, 26 Mar 2012 23:05:49 +0200 Subject: [PATCH] 4 Player --- sdljpd | Bin 40699 -> 40847 bytes sdljpd.c | 53 +++++++++++++++++++++++++++++++++++++---------------- sdljpd.c~ | 51 ++++++++++++++++++++++++++++++++++++--------------- 3 files changed, 73 insertions(+), 31 deletions(-) diff --git a/sdljpd b/sdljpd index 2c4f901137f4dbe8bd8703a13ff98e242eef5368..75060daaf478caa63bfbe727fd1316667e6bfd69 100755 GIT binary patch delta 13525 zcmaKT3tSXc|NhJ_gNw54f~;H=SrEl5pe1;BEztE=_?Cs5wHg{K_F`$-&7n|V*YN_L zGA%9Au4bjto7zQ4%k7?8y=qsjv?VW5_J8G7Yk$x8oH@&)eg3D9Gv|4}*YiDRX3h-T zg|{uM>n+vYEqRqSJ)hMJJqmB~tSD}dRUD)7&+Fk3XCLp#bCXr@dCQ|j$F#EmkzIvH z&=sbgJU5YJH1o`^RYxb}4HI16Fc0tK4P#r>O^Nl}f6Gn3_smW2%^8(7q|Y52?K5UC ztMgg5MW+rZ^a%^|cmHpQ2k{eooUl~l!ZiT?etOHdq& zx1erQ%o(fdV>R}q6se^_I?(h?Cog-)o@B4Q%E!4jII8UJxFmMb9&4|TV6E&l*xqrm z_Sy(mV`+{gb`#ib5o{Ya9_$LR4H0Y%djRZPVE0F`?bu6TPk}ue!P?okU^_Wt?M)G^ zgV~))Y#dnS>Xv-t*-&RvN&?Sc9Gnr-_G~Vsi4jtFgw(}0LfRohninBWVxK^o93k~Y zNK@FK$YzK$)?OUJc4U3xlUO-eUj&=Rrh?r7wjzQ}XDh*e47M_Y&0ueXy$H5Cg3V&5 z!S;?v{Ug|JEG+@`2fHnT?as!7T@fFf(h$M+R9f2mYq-kXoNH; zLK zapTbtTGxYwRl@r@{*bVRa0ADC2;+)S8niag;P^4Zbgeb|I9@|IhHx>*%L%t7?BVz!!tDs>aeOb~Si)|O?;va^?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blub[1000]; int enp = FALSE; int inp = FALSE; -signed int score[3] ={0,0,0}; +signed int score[4] ={0,0,0,0}; int scorebuf; int plselect = 0; int lockbz = FALSE; @@ -147,7 +148,7 @@ void Quit( int returnCode ) /*fclose(file);*/ - printf("\033[33mPunktestand:\033[m\n%s: %i\n%s: %i\n%s: %i\n", pl1, score[0], pl2, score[1], pl3, score[2]); + printf("\033[33mPunktestand:\033[m\n%s: %i\n%s: %i\n%s: %i\n%s: %i\n", pl1, score[0], pl2, score[1], pl3, score[2], pl4, score[3]); /* and exit appropriately */ exit( returnCode ); @@ -343,7 +344,14 @@ void get_buz (void) lockbz = TRUE; system("./set_led 0 0 1 0"); Mix_PlayMusic(buzz_sound, 0); - } + } + if(i == 15) + { + plselect = 3; + lockbz = TRUE; + system("./set_led 0 0 0 1"); + Mix_PlayMusic(buzz_sound, 0); + } } } } @@ -507,13 +515,13 @@ void draw_sdl (void) drect.h = nfield -> w; drect.y = 650; - for(countx=0;countx<=2;countx++) + for(countx=0;countx<=3;countx++) { - drect.x = (countx*365) + 50; + drect.x = (countx*250) + 50; SDL_BlitSurface(nfield, NULL, surface, &drect ); } - drect.x = (plselect*365) + 50; + drect.x = (plselect*250) + 50; SDL_BlitSurface(plac,NULL,surface,&drect); drect.y = drect.y + 23; @@ -525,12 +533,17 @@ void draw_sdl (void) SDL_FreeSurface(text); text = TTF_RenderText_Blended(font, pl2,color); - drect.x = (365) + 65; + drect.x = (250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_FreeSurface(text); text = TTF_RenderText_Blended(font, pl3,color); - drect.x = (2*365) + 65; + drect.x = (2*250) + 65; + SDL_BlitSurface(text,NULL,surface,&drect); + + SDL_FreeSurface(text); + text = TTF_RenderText_Blended(font, pl4,color); + drect.x = (3*250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); drect.y = drect.y + 30; @@ -546,14 +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*250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_Flip(surface); @@ -591,6 +611,7 @@ int main( int argc, char **argv ) strcpy(pl1,"Jessy"); strcpy(pl2,"Micha"); strcpy(pl3,"Pierre"); + strcpy(pl4,"Player4"); strcpy(xpfp,"level.txt"); @@ -682,7 +703,7 @@ int main( int argc, char **argv ) printf ( "%s\n", SDL_JoystickName ( 0 ) ); - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); SDL_WM_SetCaption(wmcapt, NULL); /*SDL_WM_SetIcon(SDL_LoadBMP("glpong.bmp"),NULL);*/ @@ -770,7 +791,7 @@ int main( int argc, char **argv ) /* Player right */ case SDLK_d: - if(plselect <2){ + if(plselect <3){ plselect ++;} enp = FALSE; inp = FALSE; @@ -793,7 +814,7 @@ int main( int argc, char **argv ) case SDLK_RETURN: lockbz = FALSE; enp = TRUE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); break; case SDLK_LEFT: @@ -846,7 +867,7 @@ int main( int argc, char **argv ) case SDLK_DELETE: score[plselect]=score[plselect]-pkt[ypos]; lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); inp = FALSE; enp = TRUE; break; @@ -869,13 +890,13 @@ int main( int argc, char **argv ) /* Unlock Buzzers */ case SDLK_u: lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); break; /* Reset playing field */ case SDLK_r: lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); inp = FALSE; enp = FALSE; break; diff --git a/sdljpd.c~ b/sdljpd.c~ index f8953b4..4833840 100644 --- a/sdljpd.c~ +++ b/sdljpd.c~ @@ -51,11 +51,12 @@ char buf[10000]; char pl1[1000]; char pl2[1000]; char pl3[1000]; +char pl4[1000]; char blub[1000]; int enp = FALSE; int inp = FALSE; -signed int score[3] ={0,0,0}; +signed int score[4] ={0,0,0,0}; int scorebuf; int plselect = 0; int lockbz = FALSE; @@ -147,7 +148,7 @@ void Quit( int returnCode ) /*fclose(file);*/ - printf("\033[33mPunktestand:\033[m\n%s: %i\n%s: %i\n%s: %i\n", pl1, score[0], pl2, score[1], pl3, score[2]); + printf("\033[33mPunktestand:\033[m\n%s: %i\n%s: %i\n%s: %i\n%s: %i\n", pl1, score[0], pl2, score[1], pl3, score[2], pl4, score[3]); /* and exit appropriately */ exit( returnCode ); @@ -343,7 +344,14 @@ void get_buz (void) lockbz = TRUE; system("./set_led 0 0 1 0"); Mix_PlayMusic(buzz_sound, 0); - } + } + if(i == 15) + { + plselect = 3; + lockbz = TRUE; + system("./set_led 0 0 0 1"); + Mix_PlayMusic(buzz_sound, 0); + } } } } @@ -482,7 +490,7 @@ void draw_sdl (void) } if ( n < 10) n = 45; drect.y = drect.y + 23; - strncpy(buf,myblock[xpos][ypos].antwort+i,45); + strncpy(buf,myblock[xpos][ypos].antwort+i,n); SDL_FreeSurface(text); text = TTF_RenderText_Blended(font, buf , color); SDL_BlitSurface(text,NULL,surface,&drect); @@ -507,13 +515,13 @@ void draw_sdl (void) drect.h = nfield -> w; drect.y = 650; - for(countx=0;countx<=2;countx++) + for(countx=0;countx<=3;countx++) { - drect.x = (countx*365) + 50; + drect.x = (countx*250) + 50; SDL_BlitSurface(nfield, NULL, surface, &drect ); } - drect.x = (plselect*365) + 50; + drect.x = (plselect*250) + 50; SDL_BlitSurface(plac,NULL,surface,&drect); drect.y = drect.y + 23; @@ -525,12 +533,17 @@ void draw_sdl (void) SDL_FreeSurface(text); text = TTF_RenderText_Blended(font, pl2,color); - drect.x = (365) + 65; + drect.x = (250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); SDL_FreeSurface(text); text = TTF_RenderText_Blended(font, pl3,color); - drect.x = (2*365) + 65; + drect.x = (2*250) + 65; + SDL_BlitSurface(text,NULL,surface,&drect); + + SDL_FreeSurface(text); + text = TTF_RenderText_Blended(font, pl4,color); + drect.x = (3*250) + 65; SDL_BlitSurface(text,NULL,surface,&drect); drect.y = drect.y + 30; @@ -555,6 +568,13 @@ void draw_sdl (void) text = TTF_RenderText_Blended(font,buf,color); drect.x = (2*365) + 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; + SDL_BlitSurface(text,NULL,surface,&drect); SDL_Flip(surface); } @@ -591,6 +611,7 @@ int main( int argc, char **argv ) strcpy(pl1,"Jessy"); strcpy(pl2,"Micha"); strcpy(pl3,"Pierre"); + strcpy(pl4,"Player4"); strcpy(xpfp,"level.txt"); @@ -682,7 +703,7 @@ int main( int argc, char **argv ) printf ( "%s\n", SDL_JoystickName ( 0 ) ); - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); SDL_WM_SetCaption(wmcapt, NULL); /*SDL_WM_SetIcon(SDL_LoadBMP("glpong.bmp"),NULL);*/ @@ -770,7 +791,7 @@ int main( int argc, char **argv ) /* Player right */ case SDLK_d: - if(plselect <2){ + if(plselect <3){ plselect ++;} enp = FALSE; inp = FALSE; @@ -793,7 +814,7 @@ int main( int argc, char **argv ) case SDLK_RETURN: lockbz = FALSE; enp = TRUE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); break; case SDLK_LEFT: @@ -846,7 +867,7 @@ int main( int argc, char **argv ) case SDLK_DELETE: score[plselect]=score[plselect]-pkt[ypos]; lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); inp = FALSE; enp = TRUE; break; @@ -869,13 +890,13 @@ int main( int argc, char **argv ) /* Unlock Buzzers */ case SDLK_u: lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); break; /* Reset playing field */ case SDLK_r: lockbz = FALSE; - system("./set_led 1 1 1 0"); + system("./set_led 1 1 1 1"); inp = FALSE; enp = FALSE; break;