diff options
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r-- | inc/cub3d_structs.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index ac87260..e2905f2 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -108,6 +108,7 @@ typedef struct s_sprite uint64_t s_pos_y; double spritex; double spritey; + int8_t exists; int32_t spriteheight; int32_t spritewidth; int32_t drawstartx; @@ -201,17 +202,10 @@ typedef struct s_map size_t map_w; size_t map_h; size_t mapl_len; - int32_t sprite_nbr[4096]; + int16_t sprite_nbr[FT_TOTAL_SPRT]; uint8_t sprite_var; - uint8_t weapon_var; - int32_t sprite_order[8][4096]; - int32_t st_o[8]; - int32_t traps_nbr; - int32_t heals_nbr; - int32_t weaps_nbr[3]; - int32_t traps_order[512]; - int32_t heals_order[64]; - int32_t weaps_order[3][1]; + int32_t sprite_order[FT_TOTAL_SPRT][4096]; + int32_t st_o[FT_TOTAL_SPRT + 1]; size_t line_chk; size_t map_start; uint8_t isspawn; @@ -240,6 +234,8 @@ typedef struct s_cub uint16_t currlvl; uint16_t i; uint16_t y; + float **big_t; + uint16_t big_t_val; char errmsg[64]; int32_t key_input[5]; char fps_count[9]; @@ -273,9 +269,6 @@ typedef struct s_cub struct s_img tweap[6]; struct s_img tnum[12]; struct s_sprite **sprites; - struct s_sprite traps[512]; - struct s_sprite heals[64]; - struct s_sprite **weaps; struct s_sfx sfx[13]; } t_cub; |