possibility to choose angle of view
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
#ifndef CUBE3D_MACRO_H
|
||||
# define CUBE3D_MACRO_H
|
||||
|
||||
/*
|
||||
* game params
|
||||
*/
|
||||
|
||||
/* nbr pixel player move */
|
||||
# define PLR_MV 1
|
||||
/* nbr key you can press at the same time */
|
||||
# define MAX_NB_KEY 3
|
||||
# define SCREEN_DIST 50
|
||||
# define SCREEN_SIZE 100
|
||||
# define SCREEN_DEF 50
|
||||
# define PLR_MV 5
|
||||
/* screen definition */
|
||||
# define SCREEN_DEF 100
|
||||
/* screen focal (in degree) */
|
||||
# define SCREEN_FOCAL 90
|
||||
/* size of a cell on the map */
|
||||
# define CELL 20
|
||||
|
||||
/*
|
||||
* keys macro
|
||||
*/
|
||||
|
||||
# define ARROW_LEFT 65361
|
||||
# define ARROW_UP 65362
|
||||
# define ARROW_RIGHT 65363
|
||||
|
||||
@@ -35,6 +35,8 @@ typedef struct s_rcast
|
||||
t_vec screen_dist;
|
||||
t_vec screen_size;
|
||||
t_vec ray;
|
||||
int screen_def;
|
||||
int cell;
|
||||
int cell_x;
|
||||
int cell_y;
|
||||
int slope_x;
|
||||
@@ -84,6 +86,7 @@ typedef struct s_map
|
||||
char **content;
|
||||
int size_x;
|
||||
int size_y;
|
||||
int cell;
|
||||
} t_map;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user