ajout du meilleure score
This commit is contained in:
25
gui.c
25
gui.c
@@ -2,20 +2,35 @@
|
||||
#include <stdio.h>
|
||||
#include <graph.h>
|
||||
|
||||
void Menu()
|
||||
void Menu(unsigned long *bestscore)
|
||||
{
|
||||
char buf[100];
|
||||
couleur text;
|
||||
text=CouleurParComposante(78, 93, 47);
|
||||
ChoisirEcran(0);
|
||||
ChargerImage("./images/Menu.png",0,0,0,0,930,710);
|
||||
ChoisirCouleurDessin(text);
|
||||
snprintf(buf,100,"BEST SCORE : %07ld",*bestscore);
|
||||
EcrireTexte(450,470,buf,2);
|
||||
}
|
||||
|
||||
void Pause()
|
||||
{
|
||||
void Pause(unsigned long *bestscore)
|
||||
{
|
||||
char buf[100];
|
||||
couleur text;
|
||||
text=CouleurParComposante(78, 93, 47);
|
||||
ChoisirEcran(0);
|
||||
ChargerImage("./images/Pause.png",0,0,0,0,930,710);
|
||||
ChoisirCouleurDessin(text);
|
||||
snprintf(buf,100,"BEST SCORE : %07ld",*bestscore);
|
||||
EcrireTexte(450,300,buf,2);
|
||||
}
|
||||
|
||||
void PerduGUI()
|
||||
void PerduGUI(unsigned long *bestscore)
|
||||
{
|
||||
char buf[100];
|
||||
ChoisirEcran(0);
|
||||
ChargerImage("./images/Perdu.png",0,0,0,0,930,710);
|
||||
ChargerImage("./images/Perdu.png",0,0,0,0,930,710);
|
||||
snprintf(buf,100,"SCORE : %07ld",*bestscore);
|
||||
EcrireTexte(450,250,buf,2);
|
||||
}
|
||||
Reference in New Issue
Block a user