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-12 17:29:02 +01:00
|
|
|
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,unsigned long *score,int longueur_serpent);
|
2023-12-03 14:16:38 +01:00
|
|
|
|
2023-12-12 13:57:52 +01:00
|
|
|
void DeplacementSerpent(int direction ,PIXELS *serpent, int longueur);
|
2023-12-02 10:05:42 +01:00
|
|
|
|
2023-12-12 17:29:02 +01:00
|
|
|
void InitialiserPastilles(PIXELS *pastilles, PIXELS *serpent, int longueur_serpent);
|
2023-12-03 14:16:38 +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-12 13:57:52 +01:00
|
|
|
int PastilleSurSerpent(PIXELS pastille, PIXELS *serpent, int longueur_serpent);
|
2023-12-09 09:04:42 +01:00
|
|
|
|
2023-12-14 11:25:22 +01:00
|
|
|
void MourrirSerpent(PIXELS *serpent, int longueur_serpent);
|
|
|
|
|
2023-12-08 21:08:00 +01:00
|
|
|
|
2023-12-03 14:16:38 +01:00
|
|
|
#endif
|