aboutsummaryrefslogtreecommitdiffstats
path: root/Main.gd
diff options
context:
space:
mode:
authorfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-30 09:24:11 +0000
committerfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-30 09:24:11 +0000
commitbb87759291786cba9378334ed88218e3bb155dbd (patch)
tree1f750a6144c100690537268019823d269bbeaaba /Main.gd
parentd532570052901e9e956fab4809228a6b742ee233 (diff)
Code cleanup and project refactoring
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/Main.gd b/Main.gd
index 182de50..813d22b 100644
--- a/Main.gd
+++ b/Main.gd
@@ -6,9 +6,9 @@ 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("coin", get_node("HUD/HBoxContainer/Money"), "_on_coin_hit")
- get_node("KinematicBody2D").connect("coin", get_node("HUD/Wordart/Wordart(1)/Label"), "_on_coin_hit")
+ get_node("Player").connect("hit", get_node("HUD/HBoxContainer/HealthBar"), "_on_player_hit")
+ get_node("Player").connect("coin", get_node("HUD/HBoxContainer/CoinCount"), "_on_coin_hit")
+ get_node("Player").connect("coin", get_node("HUD/GameOver/GameOverCoinMessage/GameOverCoinCount"), "_on_coin_hit")
$EnemySpawnTimer.start()