oui
This commit is contained in:
commit
82d3a7a62c
BIN
Images/FIN.png
Normal file
BIN
Images/FIN.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
8
jeu.c
8
jeu.c
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user