diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:55:17 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:55:17 +0200 |
commit | 690e705de1e8b8babbb7bf86f55a5dbae559488b (patch) | |
tree | 181f1213952b00800523daf62d51c3eba0478438 | |
parent | 4961e6a3f51990bb053cd8b18827e39aaf3e4e7c (diff) | |
download | 2022-690e705de1e8b8babbb7bf86f55a5dbae559488b.tar.gz 2022-690e705de1e8b8babbb7bf86f55a5dbae559488b.tar.bz2 2022-690e705de1e8b8babbb7bf86f55a5dbae559488b.zip |
scoreboard added again
-rw-r--r-- | godot/scenes/Die.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 6ccd16e..21a408e 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -33,6 +33,14 @@ func _ready(): previous_bounciness = mat.get_bounce() func _input(event): + + if event is InputEventKey: + if event.scancode == KEY_TAB: + if event.is_pressed(): + _game.open_scoreboard() + else: + _game.close_scoreboard() + return if event is InputEventMouseButton and dice_is_moving == false: if event.is_pressed() and left_pressed == false: |