Refactor scene structure and resource paths; add death and game over screens

This commit is contained in:
2025-05-10 02:33:49 +02:00
parent 04cce84c6c
commit a95d96dcc9
38 changed files with 486 additions and 88 deletions

View File

@@ -1,17 +1,22 @@
[gd_scene load_steps=3 format=3 uid="uid://dulkm3ah4tm0u"]
[gd_scene load_steps=4 format=3 uid="uid://dulkm3ah4tm0u"]
[ext_resource type="Script" uid="uid://b3d1p21sviww4" path="res://scripts/ui/death_screen.gd" id="1_eaoak"]
[ext_resource type="Texture2D" uid="uid://jix7wdn0isr3" path="res://sprites/ppc_icon.png" id="1_m30em"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eaoak"]
bg_color = Color(0, 0, 0, 1)
[node name="DeathScreen" type="Control"]
[node name="DeathScreen" type="Control" node_paths=PackedStringArray("death_screen_root", "current_level_label", "lives_left_label")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_eaoak")
death_screen_root = NodePath(".")
current_level_label = NodePath("PanelContainer/MarginContainer/VBoxContainer/LevelName")
lives_left_label = NodePath("PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/LivesLeft")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 1