diff options
-rw-r--r-- | scenes/levels/pixel/PixelDefender.gd | 2 | ||||
-rw-r--r-- | scenes/menu.tscn | 1 |
2 files changed, 3 insertions, 0 deletions
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"] |