SAE11_2023/include/serpent.h

16 lines
496 B
C
Raw Normal View History

2023-12-05 21:41:28 +01:00
#ifndef SERPENT_H
#define SERPENT_H
typedef struct {
int x, y;
} Segment;
void initialiserSerpent(Segment serpent[], int *longueur);
2023-12-11 18:56:40 +01:00
int gestionDeplacements(Segment serpent[], int *direction_x, int *direction_y);
int tuerSerpent(Segment serpent[], int longueur);
2023-12-05 21:41:28 +01:00
void mettreAJourSerpent(Segment serpent[], int *longueur, int *direction_x, int *direction_y);
void dessinerSerpent(Segment serpent[], int *longueur);
void attendreSerpent(unsigned long int microseconds);
2023-12-05 21:41:28 +01:00
#endif /*SERPENT_H*/