on avance

This commit is contained in:
proal 2022-11-29 13:26:23 +01:00
parent 1f536a6c35
commit 54cdbbf4b6

View File

@ -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;
spr = ChargerSprite("Images/image0.png");
AfficherSprite(spr, 10, 10);
Touche();
LibererSprite(spr);
for (pos_y=380;pos_y>10;pos_y=pos_y-90){
spr2= ChargerSprite("Images/image0.png");
AfficherSprite(spr, 100, 100);
Touche();
printf("%d", spr2);
}
for (pos_x=650;pos_x>10;pos_x=pos_x-90){
}
Touche();
FermerGraphique();