Prior to deleting the TileMap to see if I can just replace it with new features in Map and textures::.

This commit is contained in:
Zed A. Shaw 2025-05-25 10:30:45 -04:00
parent f45dbe8c48
commit ea9f6bf383
5 changed files with 15 additions and 8 deletions

View file

@ -383,6 +383,8 @@ void Raycaster::draw_ceiling_floor() {
int map_y = int(floor_y);
int light_level = matrix::inbounds(lights, map_x, map_y) ? lights[map_y][map_x] : 30;
// NOTE: use map_x/y to get the floor, ceiling texture.
// FLOOR
color = $floor_texture[texture_width * ty + tx];
$pixels[pixcoord(x, y)] = lighting_calc(color, row_distance, light_level);