ajout de la possibilité de faire pause
This commit is contained in:
parent
ff14429d88
commit
1abeb4cc0b
11
main.c
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);
|
EcrireTexte(600,650,buff,2);
|
||||||
CopierZone(1,0,0,0,930,710,0,0);
|
CopierZone(1,0,0,0,930,710,0,0);
|
||||||
}
|
}
|
||||||
|
void grandirserpent(int *serpent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void DeplacementSerpent(int direction ,int *serpent, int longueur)
|
void DeplacementSerpent(int direction ,int *serpent, int longueur)
|
||||||
{
|
{
|
||||||
@ -238,6 +242,13 @@ int main()
|
|||||||
case XK_Right:
|
case XK_Right:
|
||||||
direction = 2;
|
direction = 2;
|
||||||
break;
|
break;
|
||||||
|
case XK_space:
|
||||||
|
switch (Touche())
|
||||||
|
{
|
||||||
|
case XK_space:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("Autre touche\n");
|
printf("Autre touche\n");
|
||||||
|
BIN
prog
BIN
prog
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user