aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 102b985..7b86d09 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -89,6 +89,7 @@ typedef struct s_ray
{
uint16_t line_h;
float wall_dist;
+ float wall_dist_tab[4096];
float x_ray_pos;
float y_ray_pos;
float x_ray_dir;
@@ -116,6 +117,8 @@ typedef struct s_map
char *sprite_path;
char *mapl;
char **map;
+ int32_t sprite_nbr;
+ int32_t sprite_order[12];
int8_t x_step;
int8_t y_step;
size_t map_w;
@@ -142,7 +145,7 @@ typedef struct s_cub
struct s_rgb f_rgb;
struct s_rgb c_rgb;
struct s_img tlist[5];
- struct s_sprite sprites;
+ struct s_sprite sprites[12];
} t_cub;
# endif