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:
parent
f45dbe8c48
commit
ea9f6bf383
5 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue