From 9db950599726f803f2511c3b008abc05c3f65c27 Mon Sep 17 00:00:00 2001 From: brigitte Date: Sun, 10 Dec 2023 11:44:16 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20menu=20de=20d=C3=A9faite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JEUX_SERPENT/Jeux | Bin 17448 -> 17480 bytes JEUX_SERPENT/main.c | 11 +++++++++-- JEUX_SERPENT/score.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index 0ef3181793d102ed3ffbed978e8023e2b413028a..15e2b5b509487385f8a59e03e31ff8f53b59e527 100755 GIT binary patch delta 4422 zcmZWt4Nz3q6~6bem!IX&MK%k80RA9K;$i?rGzjbOs$rs5TWS4k)ugSli4jswh^r#0 z>yt=&93ZSuh$&YA2eBGp4O^366pxx+-z|o%h~uT=HhP=iKw1 zbM86ko%`-x4s7M^TX}7gWtoL(Pl--g`@0aVj-%^>O%Ysz86@TL3U(^nZi#z%2A!E|R_Iu>%#iRC@%3WcL_}`_&WRrtT zPTmYIM{YH(<7Y_5ACnf7tuaZ|b9o_rglq~=ll|dMHidCUfBLAfFrAklMNH#!q$Sdp z%o6kn>PvJQsS{Q&9g%Cfwed)#i}OS|);uw`)=-InN>bw*^D1$8&>SA?&zz9M*e}UX zSBosQ44?HgJ7ay%+T+u=XwIB9MWdkMtPw+r6#B}oPF18q$ywb}9_7ChpT3b4PZ<>Y zcL}T+drSV)lFF~jicia}XqD5jBnRZNom6DGTE!c^C3;*51arSo&}CUx$! z=m57jD!?U)0M{Ahq=_+AtcJJhmWt!Y{aCe`hLbdS&mj`0+v63W$1=hgJAM%Q&5XIA z0R`r5==b}N69-{HR%cjs0y{?igCZ`Bp&Z(pSCCd8LiX+ks*1OsWX#=9{T=~2Z- z)V0c&wINm&6<~|@qZ%8a(f_!vQA@ty%4&m&Dy$d-!Ot^-4~Hh|5e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256c253 100644 --- a/JEUX_SERPENT/main.c +++ b/JEUX_SERPENT/main.c @@ -43,8 +43,15 @@ int main(){ } /* fermeture de la fenĂȘtre si ECHAP pressĂ©*/ - usleep(3000000); - EcrireTexte(000,000,"Game Over", 000); + ChoisirCouleurDessin(CouleurParComposante(255,255,255)); + RemplirRectangle(0,0,1200,800); + ChoisirCouleurDessin(CouleurParComposante(0,0,0)); + EcrireTexte(500,100,"Game Over", 2); + snprintf(score,15,"Score : %04d", Nbr); + EcrireTexte(500,200,score,2); + snprintf(timer,14,"Temps : %02d:%02d", minute, seconde); + EcrireTexte(490,300,timer,2); + sleep(5); FermerGraphique(); return EXIT_SUCCESS; } \ No newline at end of file diff --git a/JEUX_SERPENT/score.c b/JEUX_SERPENT/score.c index 0040b38..944c7a5 100644 --- a/JEUX_SERPENT/score.c +++ b/JEUX_SERPENT/score.c @@ -7,7 +7,7 @@ void Score(){ Nbr=(segment-10)*10; - snprintf(score,4,"%04d0", Nbr); + snprintf(score,5,"%04d", Nbr); ChoisirCouleurDessin(CouleurParComposante(0,0,0)); RemplirRectangle(1100,730,1200,800); ChoisirCouleurDessin(CouleurParComposante(255,255,255));