aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 14:57:04 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 14:57:04 +0100
commitebcfbdc44e2cdc64dca661520e8d0db2652da64e (patch)
tree687b919c4b859476ed495f7a5d68dfc41fe9af96 /inc
parentParsed weapons spawns (diff)
download42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.gz
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.bz2
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.xz
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.zst
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.zip
Weapons sprites do draw
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h2
-rw-r--r--inc/cub3d_structs.h1
2 files changed, 3 insertions, 0 deletions
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;