Connected parsing to rest of the game

This commit is contained in:
Philippe BLAGOJEVIC
2022-04-23 20:12:13 +02:00
parent fac1f78230
commit f53e66556b
19 changed files with 1010 additions and 23 deletions

View File

@@ -75,6 +75,20 @@ typedef struct s_img
int endian;
} t_img;
/*
* wall textures and floor/ceiling colors
*/
typedef struct s_txt
{
char *txt_north;
char *txt_south;
char *txt_east;
char *txt_west;
int rgb_floor[3];
int rgb_ceiling[3];
} t_txt;
/*
* structs for the map
*/
@@ -82,8 +96,11 @@ typedef struct s_img
typedef struct s_map
{
char **content;
char *tmp_str;
int size_x;
int size_y;
int plr_x;
int plr_y;
} t_map;
/*
@@ -120,6 +137,8 @@ typedef struct s_game
t_plr plr;
// rays
t_rcast rcast;
// textures and colors
t_txt txt;
// map
t_map map;
// key hook