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:
Griffin Smith 2019-07-28 17:45:43 -04:00
parent f22bcad817
commit 6c1eba6762
17 changed files with 557 additions and 62 deletions

View file

@ -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<()> {