Merge pull request #22 from kristoferssolo/feat/UI

This commit is contained in:
Kristofers Solo 2025-01-05 19:12:56 +02:00 committed by GitHub
commit 74836df618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -2,4 +2,4 @@ pub const MOVEMENT_THRESHOLD: f32 = 0.01;
pub const WALL_OVERLAP_MODIFIER: f32 = 1.25;
pub const FLOOR_Y_OFFSET: u8 = 200;
pub const MOVEMENT_COOLDOWN: f32 = 1.0; // one second cooldown
pub const TITLE: &'static str = "Maze Ascension: The Labyrinth of Echoes";
pub const TITLE: &str = "Maze Ascension: The Labyrinth of Echoes";

View File

@ -156,11 +156,10 @@ mod tests {
fn maze_config_default(#[case] iterations: u32) {
for _ in 0..iterations {
let config = MazeConfig::default();
let radius = config.radius;
assert_eq!(config.radius, 8);
assert_eq!(config.layout.orientation, HexOrientation::Flat);
assert!(is_within_radius(config.start_pos, 8));
assert!(is_within_radius(config.end_pos, 8));
assert!(is_within_radius(config.start_pos, radius));
assert!(is_within_radius(config.end_pos, radius));
assert_ne!(config.start_pos, config.end_pos);
}
}