From ac9f8f5c7273ad32602b30e1f3c9fd5d8bee0369 Mon Sep 17 00:00:00 2001 From: mommeja Date: Sun, 24 Dec 2023 10:31:48 +0100 Subject: [PATCH] m --- graphique.c | 4 +--- graphique.h | 2 +- snake | Bin 21608 -> 21584 bytes 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/graphique.c b/graphique.c index 0695ce5..335422d 100644 --- a/graphique.c +++ b/graphique.c @@ -63,10 +63,8 @@ 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) { diff --git a/graphique.h b/graphique.h index 622a76d..81321b1 100644 --- a/graphique.h +++ b/graphique.h @@ -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(); diff --git a/snake b/snake index 5a6ce1057a0a65e618efaec92c0a3f68e4ba2aa9..36d252f53a074f0d893295b33d69d1ffab03cecf 100755 GIT binary patch delta 1293 zcmZ8fTTC2f6rS_5ST4#gunp|OUVz=|V#9S~q@onM1EaO1wF|}?q?l@AszokMOTxCX zYab@7m2%K*3DIhTrJ)bjK?M@IXmP92bRootrdFhChiexk6_8{+!&GCOhx5(({_k9K z&g4q~PfHWVJ?x}G^lc2P@k6Q^R>;V%bwv@xki2hAQ3e<>!rRfeQVGPbhPDH# zR>;W7^xF3A*Hwb}o8X_fi@y1}f_^oL?4p;`Bh6;bd!9Uz-|+i3>_@lsQzSQM7(S%x zX4e&*PI0~XE-3_&pVInJThRLOX}mo60#QSoe7zd?lEy~{x2b%os_#+xJsQ6n;wQ=F z<|>5%A5jN6gs-JO4&PvJ>J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