plr start on middle of a cell, and wall height is well proportionned
This commit is contained in:
@@ -35,7 +35,6 @@ typedef struct s_rcast
|
||||
t_vec screen_size;
|
||||
t_vec ray;
|
||||
t_vec wall;
|
||||
int hor;
|
||||
int screen_width;
|
||||
int screen_height;
|
||||
int screen_dist;
|
||||
@@ -121,6 +120,7 @@ typedef struct s_plr
|
||||
t_coord pos;
|
||||
// rot
|
||||
int rot;
|
||||
int deg;
|
||||
double cosi;
|
||||
double cosj;
|
||||
double sini;
|
||||
|
||||
Reference in New Issue
Block a user