From 7115379ccf5714816eeb91fc16d3a63e019c8082 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 14 Feb 2021 14:53:17 +0100 Subject: Adds user configurable key bindings --- Levels/Level.gd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Levels/Level.gd') 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 -- cgit v1.2.3