summaryrefslogtreecommitdiff
path: root/dungeon/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-08 23:18:14 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-08 23:25:36 -0500
commitb386d5a67c72c15e05e6e2996106d6c79793fe90 (patch)
tree864486d8af95d86161ebf442bfe997a8389614d7 /dungeon/src
parentdungeon: fix pos idx overflow (diff)
downloadDungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.tar.gz
DungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.tar.bz2
DungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.zip
graphics: refactor renderer to hardcode resolution (360p)
Diffstat (limited to 'dungeon/src')
-rw-r--r--dungeon/src/entity.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/dungeon/src/entity.rs b/dungeon/src/entity.rs
index ebdd332..badb43c 100644
--- a/dungeon/src/entity.rs
+++ b/dungeon/src/entity.rs
@@ -6,7 +6,10 @@ use crate::{Direction, FPos, Floor, Pos, astar, const_pos};
pub const PLAYER_FULL_HEALTH: u32 = 10;
/// `PLAYER_INVENTORY_SIZE` is the maximum size of the inventory
-pub const PLAYER_INVENTORY_SIZE: usize = 5;
+pub const PLAYER_INVENTORY_SIZE: u16 = 5;
+
+/// `PLAYER_INVENTORY_SIZE_USIZE` is the maximum size of the inventory
+pub const PLAYER_INVENTORY_SIZE_USIZE: usize = PLAYER_INVENTORY_SIZE as usize;
/// The `Item` type represents any item an entity may be using
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]