Ajout menu de défaite
This commit is contained in:
parent
2c9ce2f9bf
commit
9db9505997
Binary file not shown.
@ -43,8 +43,15 @@ int main(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fermeture de la fenêtre si ECHAP pressé*/
|
/* fermeture de la fenêtre si ECHAP pressé*/
|
||||||
usleep(3000000);
|
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
||||||
EcrireTexte(000,000,"Game Over", 000);
|
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();
|
FermerGraphique();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
void Score(){
|
void Score(){
|
||||||
Nbr=(segment-10)*10;
|
Nbr=(segment-10)*10;
|
||||||
snprintf(score,4,"%04d0", Nbr);
|
snprintf(score,5,"%04d", Nbr);
|
||||||
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
||||||
RemplirRectangle(1100,730,1200,800);
|
RemplirRectangle(1100,730,1200,800);
|
||||||
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
||||||
|
Loading…
Reference in New Issue
Block a user