Tests are failing but catch2 is too stupid to actually tell me where so here you go. Now if you hit L it'll turn the lights up to max and if you hit P it will show the pathing.

This commit is contained in:
Zed A. Shaw 2024-12-19 20:04:10 -05:00
parent d916d1c383
commit 93f53d1714
5 changed files with 16 additions and 4 deletions

View file

@ -201,6 +201,12 @@ bool GUI::handle_ui_events() {
resize_map(map_font_size + 10);
} else if(KB::isKeyPressed(KB::Hyphen)) {
resize_map(map_font_size - 10);
} else if(KB::isKeyPressed(KB::L)) {
auto &debug = $world.get_the<Debug>();
debug.LIGHT = !debug.LIGHT;
} else if(KB::isKeyPressed(KB::P)) {
auto &debug = $world.get_the<Debug>();
debug.PATHS = !debug.PATHS;
} else if(KB::isKeyPressed(KB::S)) {
save_world();
} else if(KB::isKeyPressed(KB::Tab)) {