change score reporting

This commit is contained in:
ultrablob 2024-04-30 22:07:02 -04:00
parent 57e3151019
commit 100572749a
5 changed files with 16 additions and 17 deletions

View file

@ -10,6 +10,7 @@ func _ready():
spawn_loop()
signal all_enemies_perished
signal wave_complete
func check_enemies_loop():
var has_enemies = len(get_tree().get_nodes_in_group("enemy")) > 0
@ -29,6 +30,7 @@ func spawn_loop():
else:
await get_tree().create_timer(wave.spawning_duration).timeout
await get_tree().create_timer(wave.wait).timeout
wave_complete.emit()
$"../GameOver".text = "YOU WIN!"
$"../Player".destroy()