Fix generation pastilles sur le serpent

This commit is contained in:
2023-12-12 17:29:02 +01:00
parent 15a99a4583
commit f83e28683d
7 changed files with 31 additions and 20 deletions

View File

@@ -3,11 +3,11 @@
#ifndef EVENEMENT_H
#define EVENEMENT_H
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,unsigned long *score);
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,unsigned long *score,int longueur_serpent);
void DeplacementSerpent(int direction ,PIXELS *serpent, int longueur);
void InitialiserPastilles(PIXELS *pastilles);
void InitialiserPastilles(PIXELS *pastilles, PIXELS *serpent, int longueur_serpent);
void AfficherTimerEtScore(int m,int n,unsigned long *score);