46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://b03tplah8y1do"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Target.cs" id="1_ykgyh"]
|
|
[ext_resource type="Texture2D" uid="uid://dhcfanxewk34" path="res://Textures/Healthbar/barHorizontal_green_mid 200.png" id="2_66yfs"]
|
|
[ext_resource type="Script" path="res://Scripts/Healthbar.cs" id="3_svfp2"]
|
|
[ext_resource type="Script" path="res://Scripts/HealthbarProgress.cs" id="4_hb8qi"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_37aka"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8nuxw"]
|
|
albedo_color = Color(1, 0.282353, 0, 1)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_ni5do"]
|
|
material = SubResource("StandardMaterial3D_8nuxw")
|
|
|
|
[node name="Target" type="StaticBody3D" node_paths=PackedStringArray("_progressBar")]
|
|
script = ExtResource("1_ykgyh")
|
|
_progressBar = NodePath("Sprite3D")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12414, -3.96702)
|
|
shape = SubResource("BoxShape3D_37aka")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12414, -3.96702)
|
|
mesh = SubResource("BoxMesh_ni5do")
|
|
skeleton = NodePath("")
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0327015, 3.01463, -3.79129)
|
|
billboard = 1
|
|
texture = ExtResource("2_66yfs")
|
|
script = ExtResource("3_svfp2")
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="Sprite3D"]
|
|
disable_3d = true
|
|
transparent_bg = true
|
|
size = Vector2i(200, 26)
|
|
size_2d_override_stretch = true
|
|
|
|
[node name="TextureProgressBar" type="TextureProgressBar" parent="Sprite3D/SubViewport"]
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
texture_progress = ExtResource("2_66yfs")
|
|
script = ExtResource("4_hb8qi")
|