diff options
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -17,6 +17,10 @@ function love.update(dt) local scn = get_current_scene() assert(scn, "No scene set.") + if is_input_just_pressed("Hot_Reload") and lk.isDown("lctrl") then + reload_assets() + end + fire_event(scn.on_update, dt) fire_event(global_on_update, dt) flush_scene() @@ -32,7 +36,6 @@ function love.draw(dt) local scn = get_current_scene() assert(scn, "No scene set.") - -- borgir fire_event(scn.on_draw, dt) fire_event(global_on_draw, dt) |
