diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-13 20:15:40 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-13 20:15:40 +0800 |
| commit | cf1ce9c40716da7883cde90633453aaa82fa9a45 (patch) | |
| tree | ce0edefe4af7cbbd0373f9a4e99aefaa7a0a79cb /main.lua | |
| parent | c80deca77394890e4083724b7d29fea4e54b6be4 (diff) | |
feat: player now can click right to punch mobs
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,10 @@ function love.keypressed(key) controller.keypressed(key) end +function love.mousereleased(x, y, button) + controller.mousereleased(x, y, button) +end + function onContact(a, b, contact) local objectA = utils.whoseBody(a:getBody()) local objectB = utils.whoseBody(b:getBody()) |
