5#include <SDL2/SDL_render.h>
6#include <SDL2/SDL_video.h>
15#define BOX_ON_TARGET 4
17#define PLAYER_ON_TARGET 6
19#define PLAYER_ON_BUTTON 8
31 unsigned int move_player;
32 unsigned int move_box;
38 SDL_Renderer *renderer;
39 unsigned int size_window;
40 unsigned int size_box;
41 unsigned int size_menu;
44char **creatArea2D (
const int x,
const int y);
45void free2D (
char **tab,
int x);
46bool isWin (
char **tab2d, vect *targets,
int nbr_targets);
47bool islose (
char **tab2d,
const int N);
48bool blockBox (
char **tab2d, vect box_coor);
49vect plusVect (vect one, vect two);
51int inGameLoop (
char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
52 int nbr_targets, dis *display_user, score *score_user,
bool menu);
53char *timeToText(time_t time);
54void nullScore(score *player_score);
55void winOrLoseLoop(dis *display_user,score *score_user,
bool win);
56unsigned int scoreCalculator(score *score_user,
bool win);