il faut que j'envoie la taille du tableau a jeu.c pour affichier plus ou moins de ligne et de colone

This commit is contained in:
ozvann
2024-11-12 12:06:36 +01:00
parent 186ddabc7c
commit b6079c7007
3 changed files with 8 additions and 16 deletions

View File

@@ -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

9
jeu.c
View File

@@ -2,11 +2,10 @@
#include <stdio.h>
#include "menu.h"
void GraphJeu(){
printf("test");
while(1){
}
void GraphJeu(int taille){
printf("fichier jeu.c taille vairiable %d\n", taille);
while(1){}
}

11
main.c
View File

@@ -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;
}