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

@@ -0,0 +1,56 @@
[gd_scene format=3 uid="uid://dg72ceo3c1u3q"]
[sub_resource type="LabelSettings" id="LabelSettings_3i7aq"]
font_size = 64
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3i7aq"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0, 0, 0, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[node name="RespawnMenu" type="Control" unique_id=1895105935]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="YouDiedLabel" type="Label" parent="." unique_id=1672619325]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -66.0
offset_top = -146.695
offset_right = 66.0
offset_bottom = -123.69501
grow_horizontal = 2
grow_vertical = 2
text = "Oh, no! You died!"
label_settings = SubResource("LabelSettings_3i7aq")
[node name="RespawnButton" type="Button" parent="." unique_id=1508413909]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -160.0
offset_top = -63.0
offset_right = 162.0
offset_bottom = -5.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_3i7aq")
text = "Respawn"