Amelioration code + commentaires. Rectifications erreurs etc.

This commit is contained in:
Vincent
2023-12-24 01:48:21 +01:00
parent 494177f3c1
commit d34541178a
9 changed files with 232 additions and 46 deletions

9
main.h
View File

@@ -10,8 +10,11 @@
#define PASTILLES 5
#define OBSTACLE 30
// Définition des directions
#define GAUCHE 0
#define HAUT 1
#define DROITE 2
#define BAS 3
struct PIXELS {
int x;
@@ -20,6 +23,4 @@ struct PIXELS {
typedef struct PIXELS PIXELS;
PIXELS gen_pastille(PIXELS *serpent,PIXELS *pastilles,PIXELS *obstacle,unsigned long longueur_serpent,unsigned long longueur_obstacle);
#endif