ajout obstacle

This commit is contained in:
2023-12-22 19:40:06 +01:00
parent a239e40e33
commit ca367ad3fe
9 changed files with 123 additions and 24 deletions

View File

@@ -3,19 +3,17 @@
#ifndef EVENEMENT_H
#define EVENEMENT_H
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,unsigned long int *score,int longueur_serpent,unsigned long int *vitesse);
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,PIXELS *obstacle,unsigned long *score,int longueur_serpent,unsigned long longueur_obstacle,unsigned long int *vitesse);
void DeplacementSerpent(int direction ,PIXELS *serpent, int longueur);
void InitialiserPastilles(PIXELS *pastilles, PIXELS *serpent, int longueur_serpent);
void AfficherTimerEtScore(long unsigned int *score,int minutes,int secondes);
int PastilleSurSerpent(PIXELS pastille, PIXELS *serpent, int longueur_serpent);
int MourrirSerpent(PIXELS *serpent, int longueur_serpent);
int MourrirSerpent(PIXELS *serpent,PIXELS *obstacle, int longueur_serpent,int longueur_obstacle);
int Serpent(PIXELS *serpent,PIXELS *pastilles,unsigned long *score,unsigned long *longueur_serpent,unsigned long int *vitesse,int direction);
int Serpent(PIXELS *serpent,PIXELS *pastilles,PIXELS *obstacle,unsigned long *score,unsigned long *longueur_serpent,int longueur_obstacle,unsigned long int *vitesse,int direction);
#endif