This commit is contained in:
Theo Champion 2025-07-07 14:40:37 +02:00
parent 83fc0d7d35
commit a8abe903cb
7 changed files with 56 additions and 21 deletions

View file

@ -6,7 +6,7 @@
/* By: tchampio <tchampio@student.42lehavre.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/06/21 19:46:20 by tchampio #+# #+# */
/* Updated: 2025/06/25 17:52:35 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -52,12 +52,21 @@ typedef struct s_mapdata
char error[1024];
} t_mapdata;
typedef struct s_player
{
float x;
float y;
double yaw;
int health;
} t_player;
typedef struct s_cub3d_data
{
void *mlx;
void *mlx_win;
t_mlx_data *mlx_data;
t_mapdata *map;
t_player player;
} t_cub3d_data;
#endif