Ajout du fichier fin
This commit is contained in:
parent
15f1406e24
commit
a417a487bf
BIN
img/backgrounds/peeposhy.png
Normal file
BIN
img/backgrounds/peeposhy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 KiB |
29
src/fin.c
Normal file
29
src/fin.c
Normal file
@ -0,0 +1,29 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
|
||||
int main() {
|
||||
|
||||
Zone Recommencer = {375, 665, 150, 35};
|
||||
Zone Quitterfin = {735, 665, 100, 35};
|
||||
|
||||
ChargerImage("./../img/backgrounds/peeposhy.png", 225, 100, 0, 0, 800, 550);
|
||||
|
||||
ChoisirCouleurDessin("black");
|
||||
EcrireTexte(550, 150, "You Win !", 2);
|
||||
snprintf(buf, 100, "Votre temps : %02d:%02d", minute, seconde);
|
||||
EcrireTexte(530, 200, buf, 1);
|
||||
|
||||
dessinerbouton(Recommencer, "Recommencer", CouleurParNom("black"), CouleurParNom("dark green"), CouleurParNom("dark green"), 1);
|
||||
|
||||
dessinerbouton(Quitterfin, "QUITTER", CouleurParNom("red"), CouleurParNom("red"), CouleurParNom("white"), 1);
|
||||
|
||||
SourisPosition();
|
||||
|
||||
if(SourisCliquee()){
|
||||
|
||||
if(checkzone(Quitterfin, _X, _Y))
|
||||
boucle = 0;
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user