summaryrefslogtreecommitdiff
path: root/Levels
diff options
context:
space:
mode:
Diffstat (limited to 'Levels')
-rw-r--r--Levels/Level.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/Levels/Level.gd b/Levels/Level.gd
index 6777854..2e623e5 100644
--- a/Levels/Level.gd
+++ b/Levels/Level.gd
@@ -25,6 +25,11 @@ func _process(delta):
self.LabelTimer.text = "%.2fs" % self.timer
+func _input(event):
+ if event is InputEventKey and event.scancode == KEY_ESCAPE:
+ Global.open_menu()
+
+
func set_player(character: KinematicBody2D):
character.position.x = $Character.position.x
character.position.y = $Character.position.y