aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.odin')
-rw-r--r--src/main.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.odin b/src/main.odin
index 4993d3c..9bc047e 100644
--- a/src/main.odin
+++ b/src/main.odin
@@ -51,6 +51,8 @@ init :: proc() {
}
frame :: proc() {
+ update_keybinds()
+
if fw.is_keybind_just_down(actions.toggle_debug_mode) {
state.debug_mode = !state.debug_mode
}
@@ -88,10 +90,13 @@ frame :: proc() {
)
- draw_room(current_room.id)
for cb in draw_callbacks {
cb()
}
+ draw_room(current_room.id)
+ for cb in fg_draw_callbacks {
+ cb()
+ }
fw.draw_rect_gradient(
{0, 0},