aboutsummaryrefslogtreecommitdiffstats
path: root/Money.gd
diff options
context:
space:
mode:
authorfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-30 03:30:47 +0000
committerfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-30 03:30:47 +0000
commit34b97ea823b1627eac2b91825cd1a748d87afd60 (patch)
tree6fc8a22fee383e46b56099134f1fc2844aa35b15 /Money.gd
parent61fe177dc7ed9f0f667fc28b85cc68ce166e3410 (diff)
Add coin scoring
Diffstat (limited to 'Money.gd')
-rw-r--r--Money.gd19
1 files changed, 19 insertions, 0 deletions
diff --git a/Money.gd b/Money.gd
new file mode 100644
index 0000000..fadd9ba
--- /dev/null
+++ b/Money.gd
@@ -0,0 +1,19 @@
+extends Label
+
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+var score = 0
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+func _on_coin_hit():
+ score += 1
+ self.text = str(score)
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass