1
0

Ajout du fichier fin

This commit is contained in:
Tom MOGULJAK 2022-11-25 10:14:42 +01:00
parent 15f1406e24
commit a417a487bf
2 changed files with 29 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

29
src/fin.c Normal file
View 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;
}
}