plr start on middle of a cell, and wall height is well proportionned

This commit is contained in:
hugogogo
2022-04-30 12:09:44 +02:00
parent 58b862ce82
commit 888fa7c116
7 changed files with 26 additions and 111 deletions

View File

@@ -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;