SAE11_2023/obstacles.h

20 lines
381 B
C
Raw Normal View History

2023-12-15 09:15:22 +01:00
#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