Organisation du code avec beaucoup de beug + jeu pas finis
This commit is contained in:
27
SAE_semestre1/src/serpent.c
Normal file
27
SAE_semestre1/src/serpent.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user