summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-11 12:09:10 +0800
committerEltrac <hi@guhub.cn>2025-03-11 12:09:10 +0800
commit1ce654dbe1727153d31659e257ffc64e6815a35b (patch)
treee65b2d82ce1d0ac06a90104b0c854a45f005308b /main.lua
parentf9be42a766792538ff941da98c5d76f9244e1c2d (diff)
refactor: implement physics engine
replace original moving logic and collision detection with love.physics
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 03c2e8b..5a46405 100644
--- a/main.lua
+++ b/main.lua
@@ -49,6 +49,8 @@ end
local controller = require "logic.controller"
function love.update(dt)
+ G.world:update(dt)
+
local updates = { player, map, controller, speaker }
for _, entity in ipairs(updates) do
entity.update(dt)