diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-02-14 14:53:17 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-02-14 14:53:17 +0100 |
commit | 7115379ccf5714816eeb91fc16d3a63e019c8082 (patch) | |
tree | f28c7595ca3f1324bcffadd40027df6c46f7d321 /Levels | |
parent | 332bab8de321d0358b30d5bf159cbda512c14852 (diff) |
Adds user configurable key bindings
Diffstat (limited to 'Levels')
-rw-r--r-- | Levels/Level.gd | 5 |
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 |