possibility to choose angle of view

This commit is contained in:
hugogogo
2022-04-23 11:58:11 +02:00
parent fac1f78230
commit e9b0dd7ec9
9 changed files with 72 additions and 48 deletions

View File

@@ -5,7 +5,7 @@ void raycast(t_game *game, t_rcast *rcast)
t_vec ray;
rcast->ray_nb = 0;
while (rcast->ray_nb <= SCREEN_DEF)
while (rcast->ray_nb <= rcast->screen_def)
{
ray_intersect(game, rcast, &ray);