Files
SAE11_2023/serpent.h

24 lines
864 B
C
Raw Normal View History

#ifndef SERPENT_H
#define SERPENT_H
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 *longueurSerpent, Segment serpent[], int direction, unsigned int vitesse_serpent);
void Mort_Serpent(int longueurSerpent, Segment serpent[], int score, int minutes, int secondes, char texte[], int* rejouer, int* gameover);
void Afficher_Serpent_Gauche(Segment serpent[], int taille, int rotation);
void Afficher_Serpent_Droite(Segment serpent[], int taille, int rotation);
void Afficher_Serpent_Droitefficher_Serpent_Bas(Segment serpent[], int taille, int rotation);
void Afficher_Serpent_Haut(Segment serpent[], int taille, int rotation);
#define TAILLE_SERPENT_INITIAL 10
#define VITESSE_INITIAL 70U
#endif /* SERPENT_H */