From 16177b5dd90ced86cdfc6f38982419a674c0dc56 Mon Sep 17 00:00:00 2001 From: rom Date: Mon, 26 Apr 2021 18:22:22 +0200 Subject: grrr --- scenes/levels/pixel/PixelDefender.gd | 2 ++ scenes/menu.tscn | 1 + 2 files changed, 3 insertions(+) diff --git a/scenes/levels/pixel/PixelDefender.gd b/scenes/levels/pixel/PixelDefender.gd index 2fc2e2d..a7c8661 100644 --- a/scenes/levels/pixel/PixelDefender.gd +++ b/scenes/levels/pixel/PixelDefender.gd @@ -23,6 +23,8 @@ func _new_enemy(): func start(): .start() + t = 0 + $Enemies.get_children().clear() var enemy_count = 5 if Settings.difficulty == Settings.Difficulty.HARD: enemy_count += 3 diff --git a/scenes/menu.tscn b/scenes/menu.tscn index 48707b6..3828ad6 100644 --- a/scenes/menu.tscn +++ b/scenes/menu.tscn @@ -194,6 +194,7 @@ anims/startgame = SubResource( 2 ) [node name="Outgoing" type="AnimationPlayer" parent="."] anims/tointro = SubResource( 3 ) anims/tosettings = SubResource( 4 ) + [connection signal="on_click" from="Content/Back" to="." method="_on_Back_on_click"] [connection signal="on_click" from="Content/HardMode" to="." method="_on_HardMode_on_click"] [connection signal="on_click" from="Content/Exit" to="." method="_on_Exit_on_click"] -- cgit