This commit is contained in:
Tom MOMMEJA 2023-12-23 22:23:56 +01:00
parent 71262b5094
commit 6cdefeda69
3 changed files with 3 additions and 4 deletions

View File

@ -63,10 +63,9 @@ void AfficheTemps(int minute, int seconde) {
EcrireTexte(20, 900, temps, 2);
}
void AfficherEcranFin(int score) {
ChoisirCouleurDessin(CouleurParComposante(255,0,0));
EcrireTexte(500, 300, "Game Over!", 2);
char scoreText[20];
snprintf(scoreText, 20, "Score: %d", score);
EcrireTexte(500, 400, scoreText, 2);
}
int PauseJeu(int perdu) {

View File

@ -8,7 +8,7 @@
#define LARGEUR 60
#define TAILLE_CASE 19
#define NOMBRE_POMMES 5
#define NOMBRE_OBSTACLES 20
#define NOMBRE_OBSTACLES 10
#define CYCLE 100000L
void Attendre(unsigned int millisecondes);
void Graphique();

BIN
snake

Binary file not shown.