Merged parsing_connected branch to master

This commit is contained in:
pblagoje
2022-04-28 19:55:06 +02:00
19 changed files with 1019 additions and 22 deletions

View File

@@ -80,6 +80,20 @@ typedef struct s_img
int height;
} 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
*/
@@ -87,9 +101,12 @@ typedef struct s_img
typedef struct s_map
{
char **content;
char *tmp_str;
int size_x;
int size_y;
int cell;
int plr_x;
int plr_y;
} t_map;
/*
@@ -123,6 +140,8 @@ typedef struct s_game
t_plr plr;
// rays
t_rcast rcast;
// textures and colors
t_txt txt;
// map
t_map map;
// map window