Mejoras en la creacion de niveles, y el hud del jugador

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-29 15:25:31 +01:00
1 parent fd0118d964
commit 5b1a434778
29 files changed
+3210 -101

No files matched your search

+79 -50
View File
@@ -1,30 +1,19 @@
[gd_scene load_steps=4 format=3]
[gd_scene load_steps=7 format=3]
[ext_resource type="Script" path="res://ui/hud/player_health_hud.gd" id="1_hud"]
[sub_resource type="StyleBoxFlat" id="HealthBackground"]
bg_color = Color(0.08, 0.08, 0.09, 0.82)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.95, 0.95, 0.95, 0.75)
corner_radius_top_left = 7
corner_radius_top_right = 7
corner_radius_bottom_right = 7
corner_radius_bottom_left = 7
[sub_resource type="StyleBoxFlat" id="HealthFill"]
bg_color = Color(0.72, 0.06, 0.06, 0.92)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
[ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="meter"]
[ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="theme"]
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_plate.svg" id="plate"]
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_skull.svg" id="skull"]
[node name="PlayerHealthHUD" type="CanvasLayer"]
layer = 90
script = ExtResource("1_hud")
[node name="EditorVisibility" type="Node" parent="."]
script = ExtResource("editor_ui_visibility")
[node name="HUD" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
@@ -33,47 +22,87 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme = ExtResource("theme")
[node name="HealthBar" type="ProgressBar" parent="HUD"]
[node name="Frame" type="TextureRect" parent="HUD"]
layout_mode = 0
offset_left = 18.0
offset_top = 18.0
offset_right = 278.0
offset_bottom = 58.0
offset_right = 362.0
offset_bottom = 82.0
mouse_filter = 2
theme_override_styles/background = SubResource("HealthBackground")
theme_override_styles/fill = SubResource("HealthFill")
max_value = 5.0
value = 5.0
show_percentage = false
texture = ExtResource("plate")
expand_mode = 1
[node name="HealthLabel" type="Label" parent="HUD/HealthBar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Emblem" type="TextureRect" parent="HUD"]
layout_mode = 0
offset_left = 29.0
offset_top = 26.0
offset_right = 69.0
offset_bottom = 66.0
mouse_filter = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.9)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_font_sizes/font_size = 18
text = "HP 5 / 5"
texture = ExtResource("skull")
expand_mode = 1
[node name="Title" type="Label" parent="HUD"]
layout_mode = 0
offset_left = 84.0
offset_top = 25.0
offset_right = 152.0
offset_bottom = 45.0
mouse_filter = 2
text = "VIDA"
vertical_alignment = 1
[node name="WarningLabel" type="Label" parent="HUD"]
visible = false
layout_mode = 0
offset_left = 154.0
offset_top = 25.0
offset_right = 212.0
offset_bottom = 45.0
mouse_filter = 2
theme_override_colors/font_color = Color(1, 0.52, 0.42, 1)
theme_override_font_sizes/font_size = 8
text = "PELIGRO"
horizontal_alignment = 1
vertical_alignment = 1
[node name="EffectsLabel" type="Label" parent="HUD"]
[node name="HealthBar" type="ProgressBar" parent="HUD"]
layout_mode = 0
offset_left = 18.0
offset_top = 106.0
offset_right = 298.0
offset_bottom = 255.0
theme_override_colors/font_color = Color(1, 0.8, 0.2, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.9)
offset_left = 84.0
offset_top = 48.0
offset_right = 346.0
offset_bottom = 68.0
mouse_filter = 2
max_value = 50.0
value = 50.0
show_percentage = false
script = ExtResource("meter")
fill_color = Color(0.84, 0.18, 0.25, 1)
segment_count = 12
[node name="HealthLabel" type="Label" parent="HUD/HealthBar"]
layout_mode = 0
offset_left = 132.0
offset_top = -23.0
offset_right = 262.0
offset_bottom = -3.0
mouse_filter = 2
text = "50 / 50"
horizontal_alignment = 2
vertical_alignment = 1
[node name="EffectsLabel" type="Label" parent="HUD"]
visible = false
layout_mode = 0
offset_left = 22.0
offset_top = 160.0
offset_right = 362.0
offset_bottom = 300.0
mouse_filter = 2
theme_override_colors/font_color = Color(0.85, 0.9, 0.64, 1)
theme_override_font_sizes/font_size = 16
text = "VELOCIDAD: 0s"
text = ""
horizontal_alignment = 0
vertical_alignment = 0
visible = false