wall grows proportionally
This commit is contained in:
@@ -70,6 +70,7 @@ static void init_raycast(t_rcast *rcast)
|
||||
dist = cos(dist) * ((SCREEN_WIDTH / 2) / sin(dist));
|
||||
rcast->screen_width = SCREEN_WIDTH;
|
||||
rcast->screen_height = SCREEN_HEIGHT;
|
||||
rcast->wall_height = WALL_HEIGHT;
|
||||
// screen dist
|
||||
rcast->screen_dist.start.x = 0;
|
||||
rcast->screen_dist.start.y = 0;
|
||||
|
||||
Reference in New Issue
Block a user