diff --git a/Images/FIN.png b/Images/FIN.png new file mode 100644 index 0000000..2456963 Binary files /dev/null and b/Images/FIN.png differ diff --git a/jeu.c b/jeu.c index ddd6b55..dbf16fb 100644 --- a/jeu.c +++ b/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 (repet==0){ 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; } else{ 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; } + snprintf(affichage,50,"Images/image%d.png",g); + ChargerImage(affichage,im_x,im_y,0,0,80,80); 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(); return 1; } \ No newline at end of file