summaryrefslogtreecommitdiff
path: root/scripts/interface.gd
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-09-24 13:42:27 -0600
committerLogan <logan@cflip.net>2022-09-24 13:42:27 -0600
commitae19500dba6283d597238579a465ee652a9ef86a (patch)
treeab376bcb505908aff00216d7e4b1b659ca244327 /scripts/interface.gd
parent1ba96860017fa48873f180769e84d2fbf90c7ee1 (diff)
Make score a global variable and interface displays power.
Diffstat (limited to 'scripts/interface.gd')
-rw-r--r--scripts/interface.gd10
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)