added stamina and health bar, gold can now be picked up

This commit is contained in:
2025-06-25 21:07:48 -05:00
parent 3e506590a9
commit 60432795f2
9 changed files with 99 additions and 46 deletions

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://bici4k5vkuoos" path="res://Scripts/player_camera.gd" id="1_ocbkm"]
[ext_resource type="Script" uid="uid://bnqpqdped5uw2" path="res://Scripts/camera_Look.gd" id="2_8uhk6"]
[ext_resource type="FontFile" uid="uid://peikxwadqo68" path="res://Assets/Fonts/UnifrakturCook-Bold.ttf" id="2_70173"]
[ext_resource type="Theme" uid="uid://bey4nvrdo2vy" path="res://Prefabs/DefaultTheme.tres" id="3_8uhk6"]
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_ocbkm"]
dof_blur_far_enabled = true
@@ -11,20 +11,11 @@ dof_blur_near_enabled = true
dof_blur_near_distance = 6.0
dof_blur_amount = 0.5
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_70173"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6wc88"]
bg_color = Color(0.458824, 0, 0.145098, 1)
[sub_resource type="Theme" id="Theme_8uhk6"]
default_font = ExtResource("2_70173")
default_font_size = 100
Label/colors/font_color = Color(1, 0.785333, 0.44, 1)
Label/colors/font_outline_color = Color(0, 0, 0, 1)
Label/colors/font_shadow_color = Color(0, 0, 0, 1)
Label/constants/line_spacing = 3
Label/constants/outline_size = 0
Label/constants/shadow_offset_x = 3
Label/constants/shadow_offset_y = 3
Label/constants/shadow_outline_size = 10
Label/styles/normal = SubResource("StyleBoxEmpty_70173")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8uhk6"]
bg_color = Color(0.457868, 0.677542, 0.145981, 1)
[node name="CameraFollow" type="Node3D"]
script = ExtResource("1_ocbkm")
@@ -41,9 +32,34 @@ anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="Camera3D/Control"]
[node name="BoxContainer" type="BoxContainer" parent="Camera3D/Control"]
layout_mode = 1
offset_right = 334.0
offset_bottom = 153.0
theme = SubResource("Theme_8uhk6")
offset_right = 3400.0
offset_bottom = 1440.0
[node name="VBoxContainer" type="VBoxContainer" parent="Camera3D/Control/BoxContainer"]
custom_minimum_size = Vector2(236.82, 3.065)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 8
[node name="HealthBar" type="ProgressBar" parent="Camera3D/Control/BoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 10
theme = ExtResource("3_8uhk6")
theme_override_styles/fill = SubResource("StyleBoxFlat_6wc88")
value = 42.34
[node name="StaminaBar" type="ProgressBar" parent="Camera3D/Control/BoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 1
theme = ExtResource("3_8uhk6")
theme_override_styles/fill = SubResource("StyleBoxFlat_8uhk6")
value = 42.34
[node name="GOLD" type="Label" parent="Camera3D/Control/BoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme = ExtResource("3_8uhk6")
text = "Gold: 35"