diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 01:08:48 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 01:08:48 +0200 |
commit | 612e037bc85b815865c6019eb9be87d731e14d30 (patch) | |
tree | 05ca92c1be2cca98e1e0b493a990556f96e003b6 /godot/scenes/Game.gd | |
parent | 98a089669678984edaf6ef37d5a0c463962b007b (diff) | |
download | 2022-612e037bc85b815865c6019eb9be87d731e14d30.tar.gz 2022-612e037bc85b815865c6019eb9be87d731e14d30.tar.bz2 2022-612e037bc85b815865c6019eb9be87d731e14d30.zip |
scoreboard can be accessed when pressing tab
Diffstat (limited to '')
-rw-r--r-- | godot/scenes/Game.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/godot/scenes/Game.gd b/godot/scenes/Game.gd index 29a5537..56acb04 100644 --- a/godot/scenes/Game.gd +++ b/godot/scenes/Game.gd @@ -66,3 +66,12 @@ func add_stroke(): func revoke_stroke(): current_strokes -= 1 + + +func open_scoreboard(): + $Scoreboard.update_values(strokes_per_level, PAR) + $Scoreboard.show() + + +func close_scoreboard(): + $Scoreboard.hide() |