Merge branch 'hugo'
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
# define SCREEN_FOCAL 90
|
||||
/* size of a cell on the map */
|
||||
# define CELL 20
|
||||
/* height of a wall without perpectiv */
|
||||
# define WALL_HEIGHT 200
|
||||
/* horizon fr perspectiv */
|
||||
# define HORIZON 700
|
||||
|
||||
/*
|
||||
* keys macro
|
||||
|
||||
@@ -72,8 +72,8 @@ void rotate_double(t_plr *plr, t_d_coord *coord);
|
||||
void plr_turn_right(t_plr *plr);
|
||||
void plr_turn_left(t_plr *plr);
|
||||
// player_limits.c
|
||||
int plr_out_limits(t_game *game, int x, int y);
|
||||
int is_wall(t_game *game, int cell_x, int cell_y);
|
||||
int plr_out_limits(t_game *game, int x, int y);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/DRAW
|
||||
|
||||
@@ -32,13 +32,13 @@ typedef struct s_vec
|
||||
|
||||
typedef struct s_rcast
|
||||
{
|
||||
t_vec screen_dist;
|
||||
t_vec screen_size;
|
||||
t_vec ray;
|
||||
t_vec wall;
|
||||
int wall_height;
|
||||
int hor;
|
||||
int screen_width;
|
||||
int screen_height;
|
||||
int screen_dist;
|
||||
int cell;
|
||||
int cell_x;
|
||||
int cell_y;
|
||||
@@ -56,6 +56,7 @@ typedef struct s_rcast
|
||||
int ray_step_y;
|
||||
int is_x;
|
||||
int ray_nb;
|
||||
int ray_len;
|
||||
double ratio;
|
||||
} t_rcast;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user