2023-12-21 14:32:55 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <graph.h>
|
|
|
|
|
2023-12-22 17:23:26 +01:00
|
|
|
void Menu(unsigned long *bestscore)
|
2023-12-21 14:32:55 +01:00
|
|
|
{
|
2023-12-22 17:23:26 +01:00
|
|
|
char buf[100];
|
|
|
|
couleur text;
|
|
|
|
text=CouleurParComposante(78, 93, 47);
|
2023-12-21 14:32:55 +01:00
|
|
|
ChoisirEcran(0);
|
|
|
|
ChargerImage("./images/Menu.png",0,0,0,0,930,710);
|
2023-12-22 17:23:26 +01:00
|
|
|
ChoisirCouleurDessin(text);
|
|
|
|
snprintf(buf,100,"BEST SCORE : %07ld",*bestscore);
|
|
|
|
EcrireTexte(450,470,buf,2);
|
2023-12-21 14:32:55 +01:00
|
|
|
}
|
|
|
|
|
2023-12-22 17:23:26 +01:00
|
|
|
void Pause(unsigned long *bestscore)
|
|
|
|
{
|
|
|
|
char buf[100];
|
|
|
|
couleur text;
|
|
|
|
text=CouleurParComposante(78, 93, 47);
|
2023-12-21 14:32:55 +01:00
|
|
|
ChoisirEcran(0);
|
|
|
|
ChargerImage("./images/Pause.png",0,0,0,0,930,710);
|
2023-12-22 17:23:26 +01:00
|
|
|
ChoisirCouleurDessin(text);
|
|
|
|
snprintf(buf,100,"BEST SCORE : %07ld",*bestscore);
|
|
|
|
EcrireTexte(450,300,buf,2);
|
2023-12-21 14:32:55 +01:00
|
|
|
}
|
|
|
|
|
2023-12-22 17:23:26 +01:00
|
|
|
void PerduGUI(unsigned long *bestscore)
|
2023-12-21 14:32:55 +01:00
|
|
|
{
|
2023-12-22 17:23:26 +01:00
|
|
|
char buf[100];
|
2023-12-21 14:32:55 +01:00
|
|
|
ChoisirEcran(0);
|
2023-12-22 17:23:26 +01:00
|
|
|
ChargerImage("./images/Perdu.png",0,0,0,0,930,710);
|
2023-12-22 17:26:41 +01:00
|
|
|
snprintf(buf,100,"BEST SCORE : %07ld",*bestscore);
|
2023-12-22 17:23:26 +01:00
|
|
|
EcrireTexte(450,250,buf,2);
|
2023-12-21 14:32:55 +01:00
|
|
|
}
|