mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2025-10-21 19:20:34 +00:00
Merge pull request #22 from kristoferssolo/feat/UI
This commit is contained in:
commit
74836df618
@ -2,4 +2,4 @@ pub const MOVEMENT_THRESHOLD: f32 = 0.01;
|
|||||||
pub const WALL_OVERLAP_MODIFIER: f32 = 1.25;
|
pub const WALL_OVERLAP_MODIFIER: f32 = 1.25;
|
||||||
pub const FLOOR_Y_OFFSET: u8 = 200;
|
pub const FLOOR_Y_OFFSET: u8 = 200;
|
||||||
pub const MOVEMENT_COOLDOWN: f32 = 1.0; // one second cooldown
|
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";
|
||||||
|
|||||||
@ -156,11 +156,10 @@ mod tests {
|
|||||||
fn maze_config_default(#[case] iterations: u32) {
|
fn maze_config_default(#[case] iterations: u32) {
|
||||||
for _ in 0..iterations {
|
for _ in 0..iterations {
|
||||||
let config = MazeConfig::default();
|
let config = MazeConfig::default();
|
||||||
|
let radius = config.radius;
|
||||||
|
|
||||||
assert_eq!(config.radius, 8);
|
assert!(is_within_radius(config.start_pos, radius));
|
||||||
assert_eq!(config.layout.orientation, HexOrientation::Flat);
|
assert!(is_within_radius(config.end_pos, radius));
|
||||||
assert!(is_within_radius(config.start_pos, 8));
|
|
||||||
assert!(is_within_radius(config.end_pos, 8));
|
|
||||||
assert_ne!(config.start_pos, config.end_pos);
|
assert_ne!(config.start_pos, config.end_pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user