SAE11_2023/obstacles.h
2023-12-15 09:15:22 +01:00

20 lines
381 B
C

#ifndef OBSTACLES_H
#define OBSTACLES_H
#include "pommes.h"
#include "serpent.h"
#define LARGEUR 60
#define HAUTEUR 40
#define TAILLE_CASE 19
typedef struct Obstacles {
Position* positions;
int nombre;
} Obstacles;
void GenererObstacles(Obstacles* obstacles, Pommes* pommes, Serpent* serpent);
int CollisionAvecObstacle(Serpent* serpent, Obstacles* obstacles);
#endif