13 lines
438 B
GDScript
13 lines
438 B
GDScript
extends Node
|
|
|
|
@onready var player: Player = get_tree().get_first_node_in_group("player")
|
|
@onready var spawn_manager: Node = $"../SpawnManager"
|
|
|
|
func _ready() -> void:
|
|
await get_tree().create_timer(3.0).timeout
|
|
spawn_manager.enemy_count_changed()
|
|
|
|
func game_over() -> void:
|
|
print("Game Over! You have collected " + str(player.gold) + " gold in this run. Try to collect more in the next run...")
|
|
# TODO: Show Game Over screen with gold
|