j'ai oublier de git add mais maintenant c'est fait

This commit is contained in:
2023-12-22 14:08:18 +01:00
parent 0c73a06f68
commit ed6ab539bf
26 changed files with 601 additions and 260 deletions

23
serpent.h Normal file
View File

@@ -0,0 +1,23 @@
#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 */