detail
This commit is contained in:
parent
6c37f1f79d
commit
2bc066c0f7
12
jeu.c
12
jeu.c
@ -15,11 +15,9 @@ int jeu(int position[20][4], int nb_paires,int tab[40]){
|
||||
int repet2, nb_images;
|
||||
int a;
|
||||
int clic_x,clic_y,im_x, im_x_1, im_x_2, im_y, im_y_1, im_y_2,xpos,ypos;
|
||||
unsigned long temps, temps2,temps3=1;
|
||||
unsigned long temps=0, temps2=Microsecondes(),temps3=1;
|
||||
char tempstab[50],affichage[50],scoretab[50];
|
||||
|
||||
couleur c=CouleurParComposante(0,0,0);
|
||||
temps2=Microsecondes();
|
||||
ChargerImage("./Images/score.png",760,200,0,0,224,63);
|
||||
nb_images=nb_paires*2;
|
||||
score=0;
|
||||
@ -41,10 +39,10 @@ int jeu(int position[20][4], int nb_paires,int tab[40]){
|
||||
snprintf(tempstab,50,"%ld secondes ecoulees",temps);
|
||||
c=CouleurParComposante(0,0,0);
|
||||
ChoisirCouleurDessin(c);
|
||||
RemplirRectangle(863,83,120,20);
|
||||
RemplirRectangle(863,100,120,20);
|
||||
c=CouleurParComposante(255,255,255);
|
||||
ChoisirCouleurDessin(c);
|
||||
EcrireTexte(867,100,tempstab,0);
|
||||
EcrireTexte(867,117,tempstab,0);
|
||||
}
|
||||
temps3=temps;
|
||||
repet=0;
|
||||
@ -62,10 +60,10 @@ int jeu(int position[20][4], int nb_paires,int tab[40]){
|
||||
snprintf(tempstab,50,"%ld secondes ecoulees",temps);
|
||||
c=CouleurParComposante(0,0,0);
|
||||
ChoisirCouleurDessin(c);
|
||||
RemplirRectangle(863,83,120,20);
|
||||
RemplirRectangle(863,100,120,20);
|
||||
c=CouleurParComposante(255,255,255);
|
||||
ChoisirCouleurDessin(c);
|
||||
EcrireTexte(867,100,tempstab,0);
|
||||
EcrireTexte(867,117,tempstab,0);
|
||||
}
|
||||
temps3=temps;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user