fix debug keybinds

This commit is contained in:
yuki 2025-11-11 20:12:25 -03:00
parent 9479825078
commit 64c825c84e
2 changed files with 5 additions and 3 deletions

View file

@ -53,7 +53,9 @@ function love.load()
up = {'key:up', 'key:w'},
down = {'key:down', 'key:s'},
action = {'key:z', 'key:space'},
f1 = {'key:f1'}, f2 = {'key:f2'}, f3 = {'key:f3'}, f12 = {'key:f12'}
f1 = {'key:f1'}, f2 = {'key:f2'}, f3 = {'key:f3'},
f10 = {'key:f10'}, f11 = {'key:f11'}, f12 = {'key:f12'}
},
pairs = {
move = {'left', 'right', 'up', 'down'}
@ -68,7 +70,7 @@ function love.update(dt)
if current_room then current_room:update(dt) end
input:update(dt)
if input:pressed('f1') then gotoRoom('CircleRoom') end
if input:pressed('up') then
if input:pressed('f2') then
-- debug breakpoint
print('break')
end

View file

@ -49,7 +49,7 @@ function Player:update(dt)
-- move collision area
self.collider:moveTo(self.x, self.y)
if input:pressed('f2') then self:kill() end
if input:pressed('f11') then self:kill() end
end
function Player:draw()