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
|
#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
|
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
|
||||||
|
|||||||
9
jeu.c
9
jeu.c
@@ -2,11 +2,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
#include "menu.h"
|
|
||||||
|
|
||||||
|
|
||||||
void GraphJeu(){
|
|
||||||
printf("test");
|
void GraphJeu(int taille){
|
||||||
while(1){
|
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 "menu.h"
|
||||||
#include "grille.h"
|
|
||||||
#include "taille.h"
|
|
||||||
#include "jeu.h"
|
#include "jeu.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main (void){
|
int main (void){
|
||||||
int taillefenetre = 0;
|
|
||||||
InitialiserGraphique();
|
InitialiserGraphique();
|
||||||
CreerFenetre(100, 100, 700, 500);
|
CreerFenetre(50, 50, 700, 500);
|
||||||
EffacerEcran(CouleurParNom("white"));
|
EffacerEcran(CouleurParNom("white"));
|
||||||
Menu();
|
Menu();
|
||||||
|
|
||||||
taillefenetre = GererChoixTaille();
|
|
||||||
|
|
||||||
printf("taille fenetre de main %d\n", taillefenetre);
|
|
||||||
FermerGraphique();
|
FermerGraphique();
|
||||||
InitialiserGraphique();
|
InitialiserGraphique();
|
||||||
CreerFenetre(100, 100, 500, 500);
|
CreerFenetre(50, 50, 700, 500);
|
||||||
GraphJeu();
|
GraphJeu();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user