diff --git a/Makefile b/Makefile index 7402c32..1003467 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ but : game # CHAPITRE 2 : VARIABLES OFILES = taille.o \ - menu.o \ - main.o + menu.o \ + main.o #deplacement.o, pion.o, grille.o, obstacle.o @@ -14,18 +14,20 @@ OFILES = taille.o \ CC = gcc -CFLAGS = -Wall -ansi -pedantic -g +CFLAGS = -Wall -ansi -pedantic # CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES) #deplacement.o : pion.h obstacle.h -menu.o : taille.h - +menu.o : taille.h menu.h + #pion.o : deplacement.h obstacle.h #taille.o : grille.h +taille.o : taille.h + #grille.o : menu.h #obstacle.o : pion.h diff --git a/game b/game deleted file mode 100755 index f9e5847..0000000 Binary files a/game and /dev/null differ diff --git a/menu.c b/menu.c index 7b562b5..95e940b 100644 --- a/menu.c +++ b/menu.c @@ -7,8 +7,8 @@ -int Menu() { - int sourisx, sourisy, choix = 0, x = 100, y = 100; /* Initialisation des variable */ +void Menu() { + int x = 100, y = 100; /* Initialisation des variable */ ChoisirCouleurDessin(CouleurParNom("black")); EcrireTexte(x, y, "Taille de grille entre 3 et 9 :", 2); /* Implémentation du texte */ y = y + 50; diff --git a/menu.h b/menu.h index 94cd8c7..27f8a89 100644 --- a/menu.h +++ b/menu.h @@ -4,6 +4,6 @@ -int Menu(); +void Menu(); #endif