From 7b61072321c71c1612a7b33d2e8d722a49c5bc99 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 11 Mar 2020 18:06:17 +0100 Subject: ca tue --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index ae353ae..016677a 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -78,6 +78,8 @@ void ft_sprite_width(t_cub *cl, t_sprite *sprite); void ft_sprite_height(t_cub *cl, t_sprite *sprite); void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); +void ft_calc_trap(t_cub *cl); +void ft_draw_traps(t_cub *cl, t_sprite *sprite); void ft_draw_skybox(t_cub *cl); void ft_suffer_animation(t_cub *cl); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 957d154..7a30d09 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -182,9 +182,9 @@ typedef struct s_map size_t map_h; size_t mapl_len; int32_t sprite_nbr; - int32_t sprite_order[12]; + int32_t sprite_order[4096]; int32_t traps_nbr; - int32_t traps_order[12]; + int32_t traps_order[512]; size_t line_chk; size_t map_start; uint8_t isspawn; -- cgit v1.2.3