add place for game window

This commit is contained in:
hugogogo
2022-04-24 11:12:39 +02:00
parent 9359e87f6f
commit bb3a9db930
7 changed files with 74 additions and 104 deletions

View File

@@ -9,8 +9,10 @@
# define PLR_MV 1
/* nbr key you can press at the same time */
# define MAX_NB_KEY 3
/* screen definition */
# define SCREEN_DEF 100
/* screen width */
# define SCREEN_WIDTH 500
/* screen height */
# define SCREEN_HEIGHT 200
/* screen focal (in degree) */
# define SCREEN_FOCAL 90
/* size of a cell on the map */

View File

@@ -113,18 +113,18 @@ typedef struct s_plr
typedef struct s_game
{
void *mlx_ptr;
// map window
t_win map_win;
t_img map_img;
// game window
// t_win win;
// t_img img;
t_win win;
t_img img;
// player
t_plr plr;
// rays
t_rcast rcast;
// map
t_map map;
// map window
t_win map_win;
t_img map_img;
// key hook
int k_hook[MAX_NB_KEY];
} t_game;