summaryrefslogtreecommitdiff
path: root/graphics/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-20 12:30:22 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-20 12:30:22 -0500
commit07f782df6df192a60443dc687d871be193478f46 (patch)
treec4465fca92fb2a4a1e29c0263787ba0037cf232f /graphics/src
parentdungeon: pickup items (diff)
downloadDungeonCrawl-07f782df6df192a60443dc687d871be193478f46.tar.gz
DungeonCrawl-07f782df6df192a60443dc687d871be193478f46.tar.bz2
DungeonCrawl-07f782df6df192a60443dc687d871be193478f46.zip
dungeon: add chest tile
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/render.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 89f9dc3..613763c 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -114,7 +114,7 @@ const ATLAS_FLOOR_EXT3: (u16, u16) = (2, 2);
const ATLAS_FLOOR_EXT4: (u16, u16) = (3, 2);
// Misc atlas.bmp textures
-//const ATLAS_ERROR: (u16, u16) = (3, 3);
+const ATLAS_ERROR: (u16, u16) = (3, 3);
/// Full source rec for any texture
const FULL_SOURCE_REC: Rectangle = rect! {
@@ -400,7 +400,7 @@ impl Renderer {
Tile::Wall => ATLAS_WALL_SIDE,
Tile::Room | Tile::Hallway => ATLAS_FLOOR,
Tile::Stairs => ATLAS_STAIR,
- //_ => ATLAS_ERROR,
+ Tile::Chest(_) => ATLAS_ERROR,
};
rt.draw_atlas(
&self.textures.atlas,
@@ -453,6 +453,7 @@ impl Renderer {
Tile::Room => Color::GRAY,
Tile::Hallway => Color::GRAY,
Tile::Stairs => Color::WHITE,
+ Tile::Chest(_) => Color::BLUE,
};
rt.draw_pixel(x.into(), y.into(), color);
}