Add more difficulty

This commit is contained in:
2022-01-28 00:48:54 +01:00
parent e68fa87fc9
commit fb5b70ce3b
7 changed files with 254 additions and 59 deletions

View File

@@ -53,6 +53,16 @@ pub fn draw_ui(ecs: &World, ctx: &mut Rltk) {
y += 1;
}
let map = ecs.fetch::<Map>();
let depth = format!("Depth: {}", map.depth);
ctx.print_color(
2,
43,
RGB::named(rltk::YELLOW),
RGB::named(rltk::BLACK),
&depth,
);
// Draw mouse
let mouse_pos = ctx.mouse_pos();
ctx.set_bg(mouse_pos.0, mouse_pos.1, RGB::named(rltk::MAGENTA));