diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 2 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 1 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 13 |
3 files changed, 9 insertions, 7 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 4151daa..3875adc 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -120,7 +120,7 @@ uint8_t ft_use_args(int argc, const char *argv[], */ void ft_castray(t_cub *cl); -void ft_floor_cast(t_cub *cl); +void ft_floor_cast(uint16_t y, t_cub *cl); void ft_detect(t_cub *cl); /* diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 66105fd..aee4e39 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -118,6 +118,7 @@ enum # define FT_CHRST_MAP_ENTRY "012NSEWLD " # define FT_CHRST_SPAWN "NSEW" # define FT_CHRST_MAP_NON_WALL "02NESWLD" +# define FT_CHRST_COLLISION "12 " /* ** ====== BMP ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index ecbbaf3..d59c25e 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -122,22 +122,23 @@ typedef struct s_ray { uint16_t line_h; float wall_dist; + float row_dist; float x_ray_pos; float y_ray_pos; float x_ray_dir; float y_ray_dir; - float x_ray_dir_bis; - float y_ray_dir_bis; + float x_ray_dir_f; + float y_ray_dir_f; + float x_ray_dir_f_bis; + float y_ray_dir_f_bis; float x_side_dist; float y_side_dist; float x_delta_dist; float y_delta_dist; float floor_x; float floor_y; - int16_t ceil_x; - int16_t ceil_y; - float row_dist; - float ceil_dist; + int16_t cell_x; + int16_t cell_y; int16_t wall_t; int16_t wall_b; uint8_t side; |