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:
parent
cd25d45031
commit
feeb9a456d
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ func _input(event):
|
||||||
respawn()
|
respawn()
|
||||||
|
|
||||||
if event is InputEventKey and event.keycode == KEY_ESCAPE:
|
if event is InputEventKey and event.keycode == KEY_ESCAPE:
|
||||||
get_tree().quit()
|
$"/root/BaseScene".move_to_menu()
|
||||||
|
|
||||||
if event is InputEventMouseMotion:
|
if event is InputEventMouseMotion:
|
||||||
var vec = event.relative
|
var vec = event.relative
|
||||||
|
|
Loading…
Reference in a new issue