This commit is contained in:
proal 2022-12-02 10:00:49 +01:00
commit 82d3a7a62c
2 changed files with 4 additions and 4 deletions

BIN
Images/FIN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

8
jeu.c
View File

@ -79,16 +79,14 @@ int jeu(int position[20][4], int nb_paires){
if (position[i][(j*2)]==im_x && position[i][(j*2+1)]==im_y){ if (position[i][(j*2)]==im_x && position[i][(j*2+1)]==im_y){
if (repet==0){ if (repet==0){
g=i+1; g=i+1;
snprintf(affichage,50,"Images/image%d.png",g);
ChargerImage(affichage,im_x,im_y,0,0,80,80);
stock_g_1=g; stock_g_1=g;
} }
else{ else{
g=i+1; g=i+1;
snprintf(affichage,50,"Images/image%d.png",g);
ChargerImage(affichage,im_x,im_y,0,0,80,80);
stock_g_2=g; stock_g_2=g;
} }
snprintf(affichage,50,"Images/image%d.png",g);
ChargerImage(affichage,im_x,im_y,0,0,80,80);
repet++; repet++;
} }
} }
@ -120,6 +118,8 @@ int jeu(int position[20][4], int nb_paires){
} }
} }
} }
ChargerImage("./Images/FIN.png",300,500,0,0,445,31);
Touche();
FermerGraphique(); FermerGraphique();
return 1; return 1;
} }