maj compteur
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@@ -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);*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
BIN
snake/lancement
BIN
snake/lancement
Binary file not shown.
Reference in New Issue
Block a user