SAE11_2023/serpent.h~

21 lines
540 B
C
Raw Normal View History

2023-12-12 16:07:54 +01:00
#ifndef SERPENT_H
#define SERPENT_H
2023-12-22 14:07:57 +01:00
typedef struct
{
int x;
int y;
} Segment;
void Creation_Serpent(Segment serpent[], int taille);
void Afficher_Serpent(Segment serpent[], int taille, int rotation);
void Deplacer_Serpent(int *longSerpent, Segment serpent[], int direction, unsigned int vitesse_serpent);
void Mort_Serpent(int longSerpent, Segment serpent[], int score, int minutes, int secondes, char texte[], int* rejouer, int* gameover);
#define TAILLE_SERPENT_INITIAL 10
#define VITESSE_INITIAL 70U
#endif /* SERPENT_H */