extract minimal room size as constant

This commit is contained in:
2024-11-03 10:32:04 +01:00
parent df80dfdd8a
commit 5311f56ca0
2 changed files with 9 additions and 3 deletions

View File

@@ -12,6 +12,12 @@ pub const ROOM_WIDTH: usize = 9;
/// the height of a room in the grid of rooms (number of characters)
pub const ROOM_HEIGHT: usize = 6;
// the minmal width of a room
pub const ROOM_MIN_WIDTH: usize = 4;
// the minmal height of a room
pub const ROOM_MIN_HEIGHT: usize = 4;
/// How many levels does the dungeon have?
pub const LEVELS: usize = 2;