Correction de bugs
This commit is contained in:
parent
c1c53b53f2
commit
432a4c76cf
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"timer.h": "c",
|
||||
"limits": "c"
|
||||
}
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
#define MAIN_H
|
||||
|
||||
int main(void);
|
||||
int menus(void);
|
||||
|
||||
#endif /*MAIN_H*/
|
||||
|
24
src/main.c
24
src/main.c
@ -4,14 +4,12 @@
|
||||
#include "../include/jeu.h"
|
||||
#include "../include/menu.h"
|
||||
|
||||
int main(void) {
|
||||
|
||||
|
||||
|
||||
int menus(void) {
|
||||
int choixMenuPrincipal = 0;
|
||||
int choixModesDeJeu = 0;
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(0, 0, 1200, 1000);
|
||||
ChoisirTitreFenetre("Snake By Moncef & Marco");
|
||||
|
||||
|
||||
while (1) {
|
||||
if (choixMenuPrincipal == 0) {
|
||||
afficherMenuPrincipal();
|
||||
@ -40,5 +38,17 @@ int main(void) {
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
int main(void){
|
||||
int choixMenuPrincipal = 0;
|
||||
int choixModesDeJeu = 0;
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(0, 0, 1200, 1000);
|
||||
ChoisirTitreFenetre("Snake By Moncef & Marco");
|
||||
|
||||
menus();
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
}
|
@ -50,7 +50,7 @@ int attendreChoixGameOver() {
|
||||
/* Vérifie si le bouton "Menu Principal" est cliqué */
|
||||
if (x >= 379 && x <= 830.7 && y >= 530.3 && y <= 670.1) {
|
||||
EffacerEcran(CouleurParNom("white"));
|
||||
main(); /* Renvoie vers le menu principal" */
|
||||
menus(); /* Renvoie vers le menu principal" */
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user