ajout de la possibilité de faire pause

This commit is contained in:
David AKAGUNDUZ 2023-11-29 22:49:42 +01:00
parent ff14429d88
commit 1abeb4cc0b
2 changed files with 11 additions and 0 deletions

11
main.c

@ -32,6 +32,10 @@ void Affichertimeretscore(int m,int n,int score) /*Afficher le temps passé et
EcrireTexte(600,650,buff,2);
CopierZone(1,0,0,0,930,710,0,0);
}
void grandirserpent(int *serpent)
{
}
void DeplacementSerpent(int direction ,int *serpent, int longueur)
{
@ -238,6 +242,13 @@ int main()
case XK_Right:
direction = 2;
break;
case XK_space:
switch (Touche())
{
case XK_space:
break;
}
default:
printf("Autre touche\n");

BIN
prog

Binary file not shown.