diff --git a/images.c b/images.c index 9558182..c473c13 100644 --- a/images.c +++ b/images.c @@ -3,6 +3,7 @@ #include #include #include "images.h" +#include int tirage_aleatoire(void){ InitialiserGraphique(); @@ -14,7 +15,7 @@ int tirage_aleatoire(void){ int nb_paires=20; int positions[20][4]; int repet; - char comparer[2]; + char* comparer[2]; ChargerImage("Images/background.png",0,0,0,0,1024,576); @@ -125,10 +126,15 @@ int tirage_aleatoire(void){ } } if (comparer[0]==comparer[1]){ - score++ + score++; } if (score!=20){ - + sleep(1); + for (pos_y=10;pos_y<=370;pos_y=pos_y+90){ + for (pos_x=10;pos_x<=640;pos_x=pos_x+90){ + ChargerImage("Images/image0.png",pos_x,pos_y,0,0,80,80); + } + } } } Touche();