From 54cdbbf4b677435a316a910d09a2b5d6198e2b76 Mon Sep 17 00:00:00 2001 From: proal Date: Tue, 29 Nov 2022 13:26:23 +0100 Subject: [PATCH] on avance --- images.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/images.c b/images.c index 8ee1c0e..22d70a3 100644 --- a/images.c +++ b/images.c @@ -9,7 +9,7 @@ int main(void){ ChoisirEcran(0); CreerFenetre(0,0,1024,576); char tirage[50]; - int pos_x, pos_y, clic_x, clic_y, spr, spr2; + int pos_x, pos_y, clic_x, clic_y, im_y, im_x; int i, j; int nb; int tab[40]; @@ -58,25 +58,24 @@ int main(void){ positions[tab[i]][2]=pos_x; positions[tab[i]][3]=pos_y; } + /*Triche snprintf(tirage,50,"Images/image%d.png",tab[i]); ChargerImage(tirage,pos_x,pos_y,0,0,80,80); - i++; + i++;*/ + ChargerImage("Images/image0.png",pos_x,pos_y,0,0,80,80); } } - /*SourisCliquee(); + SourisCliquee(); clic_x=_X; - clic_y=_Y;*/ + clic_y=_Y; + + for (pos_y=380;pos_y>10;pos_y=pos_y-90){ - spr = ChargerSprite("Images/image0.png"); - AfficherSprite(spr, 10, 10); - Touche(); - LibererSprite(spr); + } + for (pos_x=650;pos_x>10;pos_x=pos_x-90){ - spr2= ChargerSprite("Images/image0.png"); - AfficherSprite(spr, 100, 100); - Touche(); - printf("%d", spr2); + } Touche(); FermerGraphique();