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:
4
Makefile
4
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
|
||||
|
||||
9
jeu.c
9
jeu.c
@@ -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
11
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user