aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-04-05 01:39:28 +0200
committerne_mene <[email protected]>2026-04-05 01:39:28 +0200
commite4e9fbbc11aedb08814bc5e03832b6341ff43808 (patch)
tree904cbdd221865db26630f89a14467a154136a484 /main.lua
parent541c9acb3877bebde96a3d6f3586c57cf9ffc3a4 (diff)
asset reload keybind
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index ce6e306..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()