diff options
Diffstat (limited to 'graphics/src')
| -rw-r--r-- | graphics/src/render.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 0fee7b5..7e9a74b 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -380,8 +380,10 @@ impl Renderer { let tile = floor.get(pos); let idx = match tile { Tile::Wall => ATLAS_WALL_SIDE, - Tile::Air if (x + y) % 2 == 0 => ATLAS_FLOOR_FULL, - Tile::Air if (x + y) % 2 == 1 => ATLAS_FLOOR_EMPTY, + Tile::Room if (x + y) % 2 == 0 => ATLAS_FLOOR_FULL, + Tile::Room if (x + y) % 2 == 1 => ATLAS_FLOOR_EMPTY, + Tile::Hallway if (x + y) % 2 == 0 => ATLAS_FLOOR_FULL, + Tile::Hallway if (x + y) % 2 == 1 => ATLAS_FLOOR_EMPTY, _ => ATLAS_ERROR, }; rt.draw_atlas( @@ -408,7 +410,8 @@ impl Renderer { let tile = floor.get(pos); let color = match tile { Tile::Wall => Color::DARKGRAY, - Tile::Air => Color::GRAY, + Tile::Room => Color::GRAY, + Tile::Hallway => Color::LIGHTGRAY, Tile::Stairs => Color::WHITE, }; rt.draw_pixel(x.into(), y.into(), color); |