diff --git a/images.c b/images.c index 530fb2d..6e7ba58 100644 --- a/images.c +++ b/images.c @@ -18,20 +18,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; } @@ -95,7 +85,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; } @@ -113,7 +103,7 @@ int main(void){ } } } - /*}*/ + } Touche(); FermerGraphique(); printf("\n");