Merge branch 'master' of dwarves.iut-fbleau.fr:keraudre/SAE11_2023

This commit is contained in:
2023-12-20 11:35:39 +01:00
5 changed files with 8 additions and 11 deletions

View File

@@ -11,7 +11,7 @@
void ecran_lancement(void) { unsigned char ecran_lancement(void) {
couleur grey, green, yellow, red; couleur grey, green, yellow, red;
@@ -63,13 +63,13 @@ void ecran_lancement(void) {
if (Touche() == XK_space ) { if (Touche() == XK_space ) {
return ; return 1 ;
} }
if (Touche() == XK_Escape) { if (Touche() == XK_Escape) {
FermerGraphique(); return 0 ;
} }

View File

@@ -8,6 +8,6 @@
#include <graph.h> #include <graph.h>
void ecran_lancement(void) ; unsigned char ecran_lancement(void) ;
#endif /* ECRAN_LANCEMENT_H */ #endif /* ECRAN_LANCEMENT_H */

View File

@@ -5,9 +5,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <graph.h> #include <graph.h>
#include "plateau_init.h"
#include "fenetre.h" #include "fenetre.h"
#include "ecran_lancement.h"
@@ -32,9 +30,6 @@ void start (struct adresse* pointeur) {
/* affichage du l'écran principale */
ecran_lancement();

View File

@@ -6,6 +6,7 @@
#include "plateau_init.h" #include "plateau_init.h"
#include "deplacement.h" #include "deplacement.h"
#include "score_init.h" #include "score_init.h"
#include "ecran_lancement.h"
#define CYCLE 200000L #define CYCLE 200000L
@@ -31,7 +32,7 @@ int main(void) {
unsigned char* tete = pointeur -> tete; unsigned char* tete = pointeur -> tete;
unsigned char jeu = 1 ; unsigned char jeu;
unsigned long suivant; unsigned long suivant;
@@ -57,7 +58,9 @@ int main(void) {
CreerFenetre(10,10,1450,840); CreerFenetre(10,10,1450,840);
/* affichage du l'écran principale */
jeu = ecran_lancement();
start(pointeur); start(pointeur);
@@ -128,7 +131,6 @@ int main(void) {
Touche();
FermerGraphique(); FermerGraphique();
return EXIT_SUCCESS; return EXIT_SUCCESS;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB