aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 144de6f..9f48975 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -169,6 +169,7 @@ typedef struct s_map
char *ce_tex_path;
char *nlevel_path;
char *skybox_path;
+ char *traps_path;
char *music_path;
char *music_cmd;
char *mapl;
@@ -181,6 +182,8 @@ typedef struct s_map
size_t mapl_len;
int32_t sprite_nbr;
int32_t sprite_order[12];
+ int32_t traps_nbr;
+ int32_t traps_order[12];
size_t line_chk;
size_t map_start;
uint8_t isspawn;
@@ -189,6 +192,7 @@ typedef struct s_map
uint8_t isftex;
uint8_t isctex;
uint8_t isskybox;
+ uint8_t istrap;
uint8_t darklvl;
uint8_t scale;
uint32_t nlx;
@@ -219,8 +223,9 @@ typedef struct s_cub
struct s_img img;
struct s_rgb f_rgb;
struct s_rgb c_rgb;
- struct s_img tlist[8];
+ struct s_img tlist[16];
struct s_sprite sprites[4096];
+ struct s_sprite traps[4096];
} t_cub;
# endif