j'ai oublier de git add mais maintenant c'est fait
This commit is contained in:
23
serpent.h
Normal file
23
serpent.h
Normal 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 */
|
||||
Reference in New Issue
Block a user