From b386d5a67c72c15e05e6e2996106d6c79793fe90 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 8 Nov 2025 23:18:14 -0500 Subject: graphics: refactor renderer to hardcode resolution (360p) --- dungeon/src/entity.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dungeon') 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)] -- cgit v1.2.3-freya