meilleur format

This commit is contained in:
2024-12-14 15:22:51 +01:00
parent 54e7f38ff2
commit af546b8440
7 changed files with 362 additions and 447 deletions

View File

@@ -1,12 +1,12 @@
#ifndef FONCTION_H
#define FONCTION_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_video.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
#include <SDL2/SDL.h>
#define EMPTY 0
#define WALL 1
@@ -32,11 +32,11 @@ typedef struct Score
typedef struct essential_sdl
{
SDL_Window *window ;
SDL_Window *window;
SDL_Renderer *renderer;
unsigned int size_window;
unsigned int size_box;
}dis;
} dis;
unsigned short int **creatArea2D (const unsigned int N);
void free2D (unsigned short int **tab, int N);
@@ -45,8 +45,7 @@ bool isWin (unsigned short int **tab2d, vect *targets, int nbr_targets);
bool islose (unsigned short int **tab2d, const int N);
bool blockBox (unsigned short int **tab2d, vect box_coor);
vect plusVect (vect one, vect two);
void
inGameLoop (unsigned short int **tab2d, int N, vect *playerPos, vect *targets,
int nbr_targets, dis *display_user);
void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos,
vect *targets, int nbr_targets, dis *display_user);
#endif // FONCTION_H