aboutsummaryrefslogtreecommitdiffstats
path: root/Main.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 /Main.gd
parent61fe177dc7ed9f0f667fc28b85cc68ce166e3410 (diff)
Add coin scoring
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/Main.gd b/Main.gd
index a80905e..f93ecbc 100644
--- a/Main.gd
+++ b/Main.gd
@@ -9,7 +9,8 @@ onready var globals = get_node("/root/Global")
# Called when the node enters the scene tree for the first time.
func _ready():
randomize()
- get_node("KinematicBody2D").connect( "hit", get_node("HUD/HBoxContainer/HealthBar"), "_on_player_hit")
+ get_node("KinematicBody2D").connect("hit", get_node("HUD/HBoxContainer/HealthBar"), "_on_player_hit")
+ get_node("KinematicBody2D").connect("coin", get_node("HUD/HBoxContainer/Money"), "_on_coin_hit")
$EnemySpawnTimer.start()