Added respawn logic ... and with it also a complete rehaul of how managing scene instances work to make it work

This commit is contained in:
2026-03-01 15:40:56 +01:00
parent 51ee5029e9
commit 6d8e8e3734
14 changed files with 194 additions and 36 deletions

View File

@@ -1,6 +1,14 @@
[gd_scene format=3 uid="uid://drgv154ei1vrl"]
[ext_resource type="Script" uid="uid://dxc66bci2ivrj" path="res://main_menu.gd" id="1_06t4h"]
[sub_resource type="GDScript" id="GDScript_rhts7"]
script/source = "extends Control
func _on_play_button_pressed() -> void:
print(\"Starting game by pressing button...\")
GameManager.start_game()
self.queue_free()
"
[sub_resource type="LabelSettings" id="LabelSettings_rhts7"]
font_size = 64
@@ -12,7 +20,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_06t4h")
script = SubResource("GDScript_rhts7")
[node name="PlayButton" type="Button" parent="." unique_id=1831335357]
layout_mode = 1
@@ -42,5 +50,3 @@ text = "The Main Menu"
label_settings = SubResource("LabelSettings_rhts7")
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="pressed" from="PlayButton" to="." method="_on_play_button_pressed"]