diff options
Diffstat (limited to 'scripts/interface.gd')
-rw-r--r-- | scripts/interface.gd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/interface.gd b/scripts/interface.gd index 08ee85d..4f2c8b1 100644 --- a/scripts/interface.gd +++ b/scripts/interface.gd @@ -1,10 +1,10 @@ extends Label -var score = 0 - func _ready(): - text = "Score: " + str(score) + text = "Score: " + str(global_variables.score) func _on_Hoop_score(): - score += 1 - text = "Score: " + str(score) + text = "Score: " + str(global_variables.score) + +func _on_Basketball_change_power(power): + text = "Power: " + str(power) |