From ebcfbdc44e2cdc64dca661520e8d0db2652da64e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 14:57:04 +0100 Subject: Weapons sprites do draw --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 1 + 2 files changed, 3 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 33c8bba..79079e6 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -87,6 +87,8 @@ void ft_calc_trap(t_cub *cl); void ft_draw_traps(t_cub *cl, t_sprite *sprite); void ft_calc_heal(t_cub *cl); void ft_draw_heals(t_cub *cl, t_sprite *sprite); +void ft_calc_weaps(t_cub *cl); +void ft_draw_weapon(t_cub *cl, t_sprite *sprite); void ft_draw_skybox(t_cub *cl); void ft_macos_suffer_animation(t_cub *cl); void ft_linux_suffer_animation(t_cub *cl); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 174493d..8e38e36 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -204,6 +204,7 @@ typedef struct s_map size_t mapl_len; int32_t sprite_nbr[4096]; uint8_t sprite_var; + uint8_t weapon_var; int32_t sprite_order[8][4096]; int32_t traps_nbr; int32_t heals_nbr; -- cgit v1.2.3