diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 09:17:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 09:17:49 +0100 |
commit | 79af897f235b2172ce37e6d30b829fa0928aef3a (patch) | |
tree | d585fe7f2ab852c7ebc781e553669a6cff34034d /inc/cub3d_structs.h | |
parent | ft_calc_sprite in a better location, still sliding like a champ (diff) | |
download | 42-cub3d-79af897f235b2172ce37e6d30b829fa0928aef3a.tar.gz 42-cub3d-79af897f235b2172ce37e6d30b829fa0928aef3a.tar.bz2 42-cub3d-79af897f235b2172ce37e6d30b829fa0928aef3a.tar.xz 42-cub3d-79af897f235b2172ce37e6d30b829fa0928aef3a.tar.zst 42-cub3d-79af897f235b2172ce37e6d30b829fa0928aef3a.zip |
Good trap init
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 7 |
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 |