1
0

🏗️」 wip(DDA): Wall distance got 👌

This commit is contained in:
2024-10-08 13:59:37 +02:00
parent 1b5c1a4d01
commit 02cf47a5fe
5 changed files with 52 additions and 17 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/04 14:28:24 by adjoly #+# #+# */
/* Updated: 2024/10/06 19:03:26 by adjoly ### ########.fr */
/* Updated: 2024/10/08 13:43:59 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,15 @@
# include "parsing.h"
# include <stdbool.h>
/**
* @brief Enum for the wall side that has been hit
*/
typedef enum s_wall_side
{
HORIZONTAL,
VERTICAL
} t_wall_side;
typedef struct s_coord_f
{
float x;
@ -44,11 +53,6 @@ typedef struct s_cub
t_player player;
} t_cub;
typedef enum s_wall_side
{
HORIZONTAL,
VERTICAL
} t_wall_side;
typedef struct s_dda
{
@ -58,7 +62,6 @@ typedef struct s_dda
t_step step;
t_wall_side wall_side;
bool wall_hit;
} t_dda;
#endif