aboutsummaryrefslogtreecommitdiffstats
path: root/Main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/Main.gd b/Main.gd
index 958a7a7..a80905e 100644
--- a/Main.gd
+++ b/Main.gd
@@ -9,6 +9,7 @@ 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")
$EnemySpawnTimer.start()