Revert "m"

This reverts commit 6cdefeda69.

	modified:   graphique.c
	modified:   graphique.h
	new file:   snake
This commit is contained in:
Tom MOMMEJA 2023-12-23 23:20:08 +01:00
parent 6cdefeda69
commit fbaedeee4c
3 changed files with 4 additions and 3 deletions

View File

@ -63,9 +63,10 @@ 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 10 #define NOMBRE_OBSTACLES 20
#define CYCLE 100000L #define CYCLE 100000L
void Attendre(unsigned int millisecondes); void Attendre(unsigned int millisecondes);
void Graphique(); void Graphique();

BIN
snake Executable file

Binary file not shown.