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-08 21:08:00 +01:00
|
|
|
void MangerPastille(int *serpent, PIXELS* pastilles, size_t longueur_serpent, size_t longueur_pastilles, unsigned long *score);
|
2023-12-03 14:16:38 +01:00
|
|
|
|
|
|
|
void DeplacementSerpent(int direction ,int *serpent, int longueur);
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-03 14:16:38 +01:00
|
|
|
void InitialiserPastilles(PIXELS *pastilles);
|
|
|
|
|
|
|
|
void AfficherTimerEtScore(int m,int n,int score);
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-08 21:08:00 +01:00
|
|
|
int PastilleSurSerpent(PIXELS pastille, int *serpent, size_t longueur_serpent);
|
|
|
|
|
2023-12-03 14:16:38 +01:00
|
|
|
#endif
|