diff options
Diffstat (limited to 'godot')
-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: |