1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-21 15:34:17 +00:00

Press esc to return to the menu

This commit is contained in:
Steffo 2023-01-09 20:56:13 +01:00
parent cd25d45031
commit feeb9a456d
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -134,7 +134,7 @@ func _input(event):
respawn()
if event is InputEventKey and event.keycode == KEY_ESCAPE:
get_tree().quit()
$"/root/BaseScene".move_to_menu()
if event is InputEventMouseMotion:
var vec = event.relative