Amelioration code + commentaires. Rectifications erreurs etc.

This commit is contained in:
Vincent
2023-12-24 01:48:21 +01:00
parent 494177f3c1
commit d34541178a
9 changed files with 232 additions and 46 deletions

17
evenements.h Normal file
View File

@@ -0,0 +1,17 @@
#include "main.h"
#ifndef EVENEMENTS_H
#define EVENEMENTS_H
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,PIXELS *obstacle,unsigned long *score,unsigned long longueur_serpent,unsigned long longueur_obstacle,unsigned long int *vitesse);
void DeplacementSerpent(int direction ,PIXELS *serpent, unsigned long *longueur);
int PastilleSurSerpent(PIXELS pastille, PIXELS *serpent, unsigned long longueur_serpent);
int MourrirSerpent(PIXELS *serpent,PIXELS *obstacle,unsigned long longueur_serpent,unsigned long longueur_obstacle);
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);
#endif