Ajout menu de défaite

This commit is contained in:
Wilfried BRIGITTE 2023-12-10 11:44:16 +01:00
parent 2c9ce2f9bf
commit 9db9505997
3 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@ -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;
}

View File

@ -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));