aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-05 10:17:00 -0400
committeriamcheeseman <[email protected]>2026-04-05 10:17:00 -0400
commitf700e24910648802642950499be0af601a34cefd (patch)
tree9b22ef8594924b66e72d6e3b4f48db7a99a1feae /main.lua
parente321a6c5bc099708a581d8cc875df5b4b5574e25 (diff)
parent763f2783bc63ec9aa00bc6e138450eae400ca5c5 (diff)
Merge branch 'main' of ssh://codeberg.org/the-gutter/gutshot
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)