@@ -13,3 +13,6 @@ func _ready():
func _on_VisibilityNotifier2D_screen_exited():
queue_free()
+
+func _on_start_game():
+ queue_free()
@@ -37,5 +37,7 @@ func _on_MobTimer_timeout():
newMob.rotation = newRotation
newMob.position = $MobPath/MobSpawnLocation.position
newMob.linear_velocity = Vector2(rand_range(newMob.min_speed, newMob.max_speed), 0).rotated(newRotation)
+ $HUD.connect("start_game", newMob, "_on_start_game")
add_child(newMob)