SAE11_2023/SAE_semestre1/src/serpent.c

28 lines
493 B
C
Raw Normal View History

#include <stdlib.h>
#include <stdio.h>
#include <graph.h>
int direction = 4;
int t;
void Controle(void){
printf("JSHUIHUS");
while(ToucheEnAttente()){
t = Touche();
switch(t){
case XK_Left:
printf("Gauche\n");
break;
case XK_Right :
printf("Droite\n");
break;
case XK_Up:
printf("Haut");
break;
case XK_Down:
printf("bas");
break;
}
}
}