add place for game window
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user