8-bit wall bitmasks
This commit is contained in:
parent
f578938390
commit
9f45c63539
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ pub trait MapBuilder {
|
||||||
|
|
||||||
pub fn random_builder(new_depth: i32) -> Box<dyn MapBuilder> {
|
pub fn random_builder(new_depth: i32) -> Box<dyn MapBuilder> {
|
||||||
let mut rng = rltk::RandomNumberGenerator::new();
|
let mut rng = rltk::RandomNumberGenerator::new();
|
||||||
/* let builder = rng.roll_dice(1, 8);
|
let builder = rng.roll_dice(1, 8);
|
||||||
match builder {
|
match builder {
|
||||||
1 => Box::new(bsp_dungeon::BspDungeonBuilder::new(new_depth)),
|
1 => Box::new(bsp_dungeon::BspDungeonBuilder::new(new_depth)),
|
||||||
2 => Box::new(bsp_interior::BspInteriorBuilder::new(new_depth)),
|
2 => Box::new(bsp_interior::BspInteriorBuilder::new(new_depth)),
|
||||||
|
|
@ -31,6 +31,6 @@ pub fn random_builder(new_depth: i32) -> Box<dyn MapBuilder> {
|
||||||
6 => Box::new(drunkard::DrunkardsWalkBuilder::winding_passages(new_depth)),
|
6 => Box::new(drunkard::DrunkardsWalkBuilder::winding_passages(new_depth)),
|
||||||
7 => Box::new(maze::MazeBuilder::new(new_depth)),
|
7 => Box::new(maze::MazeBuilder::new(new_depth)),
|
||||||
_ => Box::new(simple_map::SimpleMapBuilder::new(new_depth)),
|
_ => Box::new(simple_map::SimpleMapBuilder::new(new_depth)),
|
||||||
} */
|
}
|
||||||
Box::new(maze::MazeBuilder::new(new_depth))
|
//Box::new(drunkard::DrunkardsWalkBuilder::winding_passages(new_depth))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue