This commit is contained in:
Titouan LERICHE 2023-12-12 11:43:24 +01:00
parent f72d72fa8e
commit 4a33fb2a5a

@ -6,13 +6,10 @@
#include <stdlib.h>
#include <graph.h>
#include "plateau_init.h"
#include "ajout_score.c"
#define CYCLE 1000000L
void start (void) {
int start (void) {
couleur green, grey, yellow, red, black, white;
@ -20,6 +17,7 @@ void start (void) {
int i, j;
char* texte1 = "espace = lancer";
char* texte2 = "espace = pause";
@ -28,7 +26,7 @@ void start (void) {
int score=0;
char* num_score = "score : 00000";
InitialiserGraphique();
@ -73,7 +71,11 @@ void start (void) {
/*affichage compteur pomme (score)*/
/*EcrireTexte(1250, 600, num_score, 2);*/
void ajout_scorescore (unsigned int compteur) {
compteur = compteur + 5;
char* a= (int) compteur;
EcrireTexte(1250, 600, a, 2);
}
@ -143,6 +145,8 @@ void start (void) {
return EXIT_SUCCESS;
}