maj compteur

This commit is contained in:
2023-12-11 16:14:34 +01:00
parent f4fa9d1ec5
commit e83a53cecc
3 changed files with 10 additions and 7 deletions

View File

@@ -5,11 +5,11 @@
#include <graph.h>
void score (int compteur) {
void ajout_scorescore (unsigned int compteur) {
compteur = compteur + 5;
}
char* a= (int) compteur;
EcrireTexte(1250, 600, a, 2);
}

View File

@@ -6,6 +6,7 @@
#include <stdlib.h>
#include <graph.h>
#include "plateau_init.h"
#include "ajout_score.c"
@@ -26,7 +27,7 @@ int start (void) {
int score=0;
char* num_score = "score : 00000";
InitialiserGraphique();
@@ -71,7 +72,9 @@ int start (void) {
/*affichage compteur pomme (score)*/
EcrireTexte(1250, 600, num_score, 2);
/*EcrireTexte(1250, 600, num_score, 2);*/

Binary file not shown.