Allow resetting bubble on launcher via key press
parent
0b905f512c
commit
e960811934
6
main.lua
6
main.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue