44 lines
509 B
C
Raw Permalink Normal View History

2023-12-10 23:37:44 +01:00
#include <stdlib.h>
#include <graph.h>
2023-12-12 13:52:49 +01:00
#include <stdio.h>
2023-12-12 17:27:44 +01:00
#include "ajout_score.h"
2023-12-10 23:37:44 +01:00
2023-12-19 13:34:32 +01:00
void ajout_score(short int* compteur) {
2023-12-12 13:52:49 +01:00
char a[20];
2023-12-19 13:34:32 +01:00
couleur grey, white;
grey = CouleurParComposante(35,35,35);
white = CouleurParComposante(255,255,255);
2023-12-12 15:48:31 +01:00
*compteur = *compteur + 5;
2023-12-12 13:52:49 +01:00
2023-12-19 13:34:32 +01:00
sprintf(a, "%hd", *compteur);
2023-12-12 13:52:49 +01:00
2023-12-19 13:34:32 +01:00
ChoisirCouleurDessin(grey);
2023-12-24 20:21:24 +01:00
RemplirRectangle( 1300, 620, 70, 40);
2023-12-19 13:34:32 +01:00
ChoisirCouleurDessin(white);
2023-12-24 20:21:24 +01:00
EcrireTexte(1310, 650, a, 2);
2023-12-12 13:52:49 +01:00
2023-12-12 17:27:44 +01:00
2023-12-12 13:52:49 +01:00
}
2023-12-10 23:37:44 +01:00