From fb33cf3d4531d5aa57d0d1ab5e67a8b973f08a10 Mon Sep 17 00:00:00 2001 From: nguyenh Date: Mon, 21 Nov 2022 23:06:43 +0100 Subject: [PATCH] travaux du Lundi 21 Novembre --- ChargerMode.h | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/ChargerMode.h b/ChargerMode.h index 92b54ac..adcc09c 100644 --- a/ChargerMode.h +++ b/ChargerMode.h @@ -2,17 +2,40 @@ #include #include #include +#include -void AfficherGrille(int* tab,int nbcolonne, int nbligne) { - int colonne; +void AfficherGrille(int** tab, int nbligne, int nbcolonne) { int ligne; + int colonne; int image; int taille=15; int i; int sprite; char str[50]; + for (ligne=0;ligne=1) { @@ -21,19 +44,17 @@ void AfficherGrille(int* tab,int nbcolonne, int nbligne) { else { image=0; } - printf("%i\n",taille); - sprintf(str,"./images/%i.png", tab[image]); + grille[ligne][colonne]=tab[image]; for (i=image;i