aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 79ee0f8..1e7e981 100644
--- a/main.lua
+++ b/main.lua
@@ -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)