This commit is contained in:
Tom MOMMEJA 2023-12-24 10:31:48 +01:00
parent fbaedeee4c
commit ac9f8f5c72
3 changed files with 2 additions and 4 deletions

View File

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

View File

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

BIN
snake

Binary file not shown.