ajout obstacle

This commit is contained in:
2023-12-22 19:40:06 +01:00
parent a239e40e33
commit ca367ad3fe
9 changed files with 123 additions and 24 deletions

3
main.h
View File

@@ -8,6 +8,7 @@
#define T_PIXEL 15
#define DECALEMENT 30
#define PASTILLES 5
#define OBSTACLE 100
@@ -19,6 +20,6 @@ struct PIXELS {
typedef struct PIXELS PIXELS;
PIXELS gen_pastille(PIXELS *serpent,PIXELS *pastilles,int longueur_serpent);
PIXELS gen_pastille(PIXELS *serpent,PIXELS *pastilles,PIXELS *obstacle,int longueur_serpent,int longueur_obstacle);
#endif