add struct wall
This commit is contained in:
@@ -70,7 +70,6 @@ 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;
|
||||
@@ -133,5 +132,6 @@ t_game *init_game(void)
|
||||
// raycasting
|
||||
init_raycast(&(game->rcast));
|
||||
game->rcast.cell = game->map.cell;
|
||||
game->wall.height = WALL_HEIGHT;
|
||||
return (game);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user