diff --git a/img/backgrounds/peeposhy.png b/img/backgrounds/peeposhy.png new file mode 100644 index 0000000..12a50ad Binary files /dev/null and b/img/backgrounds/peeposhy.png differ diff --git a/src/fin.c b/src/fin.c new file mode 100644 index 0000000..a771634 --- /dev/null +++ b/src/fin.c @@ -0,0 +1,29 @@ +#include +#include +#include + +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; + + } +} \ No newline at end of file