diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-11 12:09:10 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-11 12:09:10 +0800 |
| commit | 1ce654dbe1727153d31659e257ffc64e6815a35b (patch) | |
| tree | e65b2d82ce1d0ac06a90104b0c854a45f005308b /main.lua | |
| parent | f9be42a766792538ff941da98c5d76f9244e1c2d (diff) | |
refactor: implement physics engine
replace original moving logic and collision detection with love.physics
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
