2023-12-03 14:16:38 +01:00
|
|
|
#include "main.h"
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-03 14:16:38 +01:00
|
|
|
#ifndef EVENEMENT_H
|
|
|
|
#define EVENEMENT_H
|
|
|
|
|
2023-12-22 21:07:16 +01:00
|
|
|
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,PIXELS *obstacle,unsigned long *score,unsigned long longueur_serpent,unsigned long longueur_obstacle,unsigned long int *vitesse);
|
2023-12-03 14:16:38 +01:00
|
|
|
|
2023-12-22 21:07:16 +01:00
|
|
|
void DeplacementSerpent(int direction ,PIXELS *serpent, unsigned long longueur);
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-15 22:58:53 +01:00
|
|
|
void AfficherTimerEtScore(long unsigned int *score,int minutes,int secondes);
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-22 21:07:16 +01:00
|
|
|
int PastilleSurSerpent(PIXELS pastille, PIXELS *serpent, unsigned long longueur_serpent);
|
2023-12-09 09:04:42 +01:00
|
|
|
|
2023-12-22 21:07:16 +01:00
|
|
|
int MourrirSerpent(PIXELS *serpent,PIXELS *obstacle,unsigned long longueur_serpent,unsigned long longueur_obstacle);
|
2023-12-14 11:25:22 +01:00
|
|
|
|
2023-12-22 21:07:16 +01:00
|
|
|
int Serpent(PIXELS *serpent,PIXELS *pastilles,PIXELS *obstacle,unsigned long *score,unsigned long *longueur_serpent,unsigned long longueur_obstacle,unsigned long int *vitesse,int direction);
|
2023-12-19 17:23:38 +01:00
|
|
|
|
2023-12-08 21:08:00 +01:00
|
|
|
|
2023-12-03 14:16:38 +01:00
|
|
|
#endif
|