From b0605c841a9ff6f8ba0f3e3cca6ea6055dbfa809 Mon Sep 17 00:00:00 2001 From: proal Date: Tue, 29 Nov 2022 17:27:10 +0100 Subject: [PATCH] =?UTF-8?q?on=20r=C3=A9pare=20quelques=20trucs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- images.c | 46 ++++++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/images.c b/images.c index 534dac3..d585e99 100644 --- a/images.c +++ b/images.c @@ -20,20 +20,20 @@ int main(void){ /*Initialisation des tableaux*/ for (i=0;i<20;i++){ - for (j=0;j<2;j++){ + for (j=0;j<4;j++){ positions[i][j]=0; } } for (i=0;i<40;i++){ - tab[i]=0; + tab[i]=-1; } /*Tirage des images*/ srand(time(NULL)); for (i=0;i<2;i++){ - for (j=0;j10;pos_y=pos_y-90){ if (clic_y>=pos_y){ - if (clic_y<=pos_y+90){ + if (clic_y<=pos_y+80){ im_y=pos_y; pos_y=0; } @@ -97,7 +87,7 @@ int main(void){ } for (pos_x=650;pos_x>10;pos_x=pos_x-90){ if (clic_x>=pos_x){ - if (clic_x<=pos_x+90){ + if (clic_x<=pos_x+80){ im_x=pos_x; pos_x=0; } @@ -115,7 +105,7 @@ int main(void){ } } } - /*}*/ + } Touche(); FermerGraphique(); printf("\n");