From 7198c48b7f03e0d452c5565c2ab47d60ffe07b94 Mon Sep 17 00:00:00 2001 From: stiti Date: Tue, 5 Dec 2023 21:41:28 +0100 Subject: [PATCH] Ajout de serpent.h --- include/serpent.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/serpent.h diff --git a/include/serpent.h b/include/serpent.h new file mode 100644 index 0000000..e888987 --- /dev/null +++ b/include/serpent.h @@ -0,0 +1,16 @@ +#ifndef SERPENT_H +#define SERPENT_H + + +typedef struct { + int x, y; +} Segment; + +void initialiserSerpent(Segment serpent[], int *longueur); +void gestionDeplacements(Segment serpent[], int *direction_x, int *direction_y); +int tuerSerpent(Segment serpent[]); +void mettreAJourSerpent(Segment serpent[], int *longueur, int *direction_x, int *direction_y); +void dessinerSerpent(Segment serpent[], int *longueur); +int seMangerQueue(Segment serpent[], int longueur); + +#endif /*SERPENT_H*/