Connected parsing to rest of the game
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user