Allow resetting bubble on launcher via key press

main
Tyler Scott 2022-02-05 07:47:13 +07:00
parent 0b905f512c
commit e960811934
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,12 @@ end
function love.keypressed(key, scan_code, is_repeat)
if key == 'escape' then
love.event.quit()
elseif key == 'r' then
game.next_bubble.x = game.launcher_x
game.next_bubble.y = game.launcher_y
game.next_bubble.velocity_x = 0
game.next_bubble.velocity_y = 0
game.paused = false
elseif key == 'space' then
game.paused = not game.paused
elseif key == 'n' and game.paused then