2023-12-19 17:31:26 +01:00
|
|
|
/* Fonction qui affiche l'écran de fin du jeu
|
|
|
|
|
|
|
|
Written by Yann KERAUDREN and Titouan LERICHE */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <graph.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
couleur grey, green, yellow, red, black;
|
2023-12-19 17:31:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
InitialiserGraphique();
|
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
|
|
|
|
CreerFenetre(400,150,650,500);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
grey = CouleurParComposante(60, 60, 60);
|
|
|
|
ChoisirCouleurDessin(grey);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
RemplirRectangle(0,0,650,500);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
red = CouleurParComposante(255,0,0);
|
|
|
|
ChoisirCouleurDessin(red);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
EcrireTexte(280,50, "DEAD", 2);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
EcrireTexte(90,370, "space = play", 2);
|
|
|
|
|
|
|
|
EcrireTexte(400,370, "echap = quit", 2);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
yellow = CouleurParComposante(255,255,0);
|
|
|
|
ChoisirCouleurDessin(yellow);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
EcrireTexte(20,200, "score : ", 2);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
EcrireTexte(20,250, " time : ", 2);
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
|
2023-12-19 17:31:26 +01:00
|
|
|
|
2023-12-20 11:34:42 +01:00
|
|
|
/*
|
|
|
|
ajout_score();
|
|
|
|
time()
|
|
|
|
*/
|
2023-12-19 17:31:26 +01:00
|
|
|
|
|
|
|
Touche();
|
|
|
|
FermerGraphique();
|
|
|
|
|
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|