Hello world

This commit is contained in:
2025-11-14 15:07:40 +01:00
commit 06267858e8
5 changed files with 1579 additions and 0 deletions

35
includes/cub3d.h Normal file
View File

@@ -0,0 +1,35 @@
#ifndef CUB3D_H
# define CUB3D_H
# include <unistd.h>
# include <stdlib.h>
# include <math.h>
# include "../lib/mlx/include/MLX42/MLX42.h"
# define S_W 800
# define S_H 600
# define FOV 60
# define TILE_SIZE 50
typedef struct s_player
{
int player_x;
int player_y;
double angel;
float fov;
int rot;
int l_r;
int u_d;
} t_player;
typedef struct s_mlx
{
mlx_image_t *img;
mlx_t *mlx_ptr;
t_player *player;
char **map;
} t_mlx;
#endif