Police Timer

This commit is contained in:
Vincent TEISSIER 2023-11-27 12:21:59 +01:00
parent 7d9c5a72df
commit bfa12491ac
2 changed files with 2 additions and 4 deletions

6
main.c

@ -23,7 +23,7 @@ void Affichertimer(int n) /*Afficher le temps passé*/
CopierZone(2,1,0,0,930,710,0,0);
snprintf(buf,100,"temps : %05d",n);
TailleSupPolice(7);
EcrireTexte(60,650,buf,2+1);
EcrireTexte(60,650,buf,2);
TailleSupPolice(7);
CopierZone(1,0,0,0,930,710,0,0);
}
@ -158,15 +158,13 @@ int main()
{
unsigned long suivant;
int go_on=1;
int n;
int x_pastille,y_pastille;
int n = 0;
size_t longueur_serpent = 20;
size_t longueur_pastilles = 10;
int *serpent = (int *)malloc(longueur_serpent * sizeof(int));
int *pastilles = (int *)malloc(longueur_pastilles * sizeof(int));
int direction = 0;
suivant=Microsecondes()+delta;
if(serpent == NULL) {
fprintf(stderr, "Erreur d'allocation de mémoire.\n");

BIN
prog

Binary file not shown.