From b6079c7007a0b1fc6a2ae0fc879e1cf3e7ae6305 Mon Sep 17 00:00:00 2001 From: ozvann Date: Tue, 12 Nov 2024 12:06:36 +0100 Subject: [PATCH] il faut que j'envoie la taille du tableau a jeu.c pour affichier plus ou moins de ligne et de colone --- Makefile | 4 ++-- jeu.c | 9 ++++----- main.c | 11 ++--------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 355435a..74b9416 100644 --- a/Makefile +++ b/Makefile @@ -41,9 +41,9 @@ grille.o : grille.h taille.h #obstacle.o : pion.h -jeu.o : jeu.h menu.h +jeu.o : jeu.h -main.o : menu.h grille.h taille.h +main.o : menu.h jeu.h # CHAPITRE 4 : DEPENDANCES AVEC COMMANDES diff --git a/jeu.c b/jeu.c index a248e84..4b122b6 100644 --- a/jeu.c +++ b/jeu.c @@ -2,11 +2,10 @@ #include -#include "menu.h" -void GraphJeu(){ - printf("test"); - while(1){ - } + +void GraphJeu(int taille){ + printf("fichier jeu.c taille vairiable %d\n", taille); + while(1){} } diff --git a/main.c b/main.c index 117f86f..34d5312 100644 --- a/main.c +++ b/main.c @@ -4,25 +4,18 @@ #include "menu.h" -#include "grille.h" -#include "taille.h" #include "jeu.h" int main (void){ - int taillefenetre = 0; InitialiserGraphique(); - CreerFenetre(100, 100, 700, 500); + CreerFenetre(50, 50, 700, 500); EffacerEcran(CouleurParNom("white")); Menu(); - - taillefenetre = GererChoixTaille(); - - printf("taille fenetre de main %d\n", taillefenetre); FermerGraphique(); InitialiserGraphique(); - CreerFenetre(100, 100, 500, 500); + CreerFenetre(50, 50, 700, 500); GraphJeu(); return EXIT_SUCCESS; }