menu début/fin fini
This commit is contained in:
parent
759f65984e
commit
7ffdee3300
Binary file not shown.
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 210 KiB |
BIN
JEUX_SERPENT/IMG/menu2.png
Normal file
BIN
JEUX_SERPENT/IMG/menu2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 222 KiB |
Binary file not shown.
@ -61,9 +61,10 @@ void DessinerScene(int segment, int serpent, int pomme){
|
||||
void MenuDebut(){
|
||||
imageMenu=ChargerSprite("IMG/menu1.png");
|
||||
AfficherSprite(imageMenu,0,0);
|
||||
EcrireTexte(450,100,"JEU DU SERPENT",2);
|
||||
EcrireTexte(410,500,"Appuyer sur Q pour quitter",2);
|
||||
EcrireTexte(290,400,"Appuyer sur Fleche de Droite pour lancer le jeu",2);
|
||||
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
||||
/*EcrireTexte(450,100,"JEU DU SERPENT",2);*/
|
||||
EcrireTexte(410,650,"Appuyer sur Q pour quitter",2);
|
||||
EcrireTexte(290,750,"Appuyer sur Fleche de Droite pour lancer le jeu",2);
|
||||
}
|
||||
|
||||
/*Apparition aléatoire des pommes*/
|
||||
|
@ -46,13 +46,12 @@ void Attendre(long int microsecondes){
|
||||
/*création du Menu de Fin*/
|
||||
void MenuDeFin(int Nbr){
|
||||
EffacerEcran(CouleurParComposante(0,0,0));
|
||||
imageMenuFin=ChargerSprite("IMG/menu1.png");
|
||||
imageMenuFin=ChargerSprite("IMG/menu2.png");
|
||||
AfficherSprite(imageMenuFin,0,0);
|
||||
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
||||
EcrireTexte(500,100,"Game Over", 2);
|
||||
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
||||
snprintf(score,15,"Score : %04d", Nbr);
|
||||
EcrireTexte(500,200,score,2);
|
||||
EcrireTexte(500,650,score,2);
|
||||
snprintf(timer,14,"Temps : %02d:%02d", minute, seconde);
|
||||
EcrireTexte(490,300,timer,2);
|
||||
EcrireTexte(410,500,"Appuyer sur Q pour quitter",2);
|
||||
EcrireTexte(490,700,timer,2);
|
||||
EcrireTexte(410,750,"Appuyer sur Q pour quitter",2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user