Allow converting generated levels to entities
Add a new Wall entity, and allow converting generated levels to entity maps containing them, then finally displaying them using some of the (now expanded) box drawing machinery.
This commit is contained in:
parent
f22bcad817
commit
6c1eba6762
17 changed files with 557 additions and 62 deletions
|
|
@ -95,7 +95,7 @@ fn generate_level<'a, W: io::Write>(
|
|||
),
|
||||
Some(gen) => panic!("Unrecognized generator: {}", gen),
|
||||
};
|
||||
level_gen::display::print_generated_level(&level, stdout)
|
||||
level_gen::draw_level(level, stdout)
|
||||
}
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue