HUD and prototype textures
This commit is contained in:
parent
37a17878e4
commit
03bc73e9ff
45 changed files with 742 additions and 26 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=26 format=3 uid="uid://dpsr6ug3pkb40"]
|
||||
[gd_scene load_steps=29 format=3 uid="uid://dpsr6ug3pkb40"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://3dphlay25fih" path="res://scripts/player/player.gd" id="1_g2els"]
|
||||
[ext_resource type="Script" uid="uid://dalwlndejfdhm" path="res://scripts/player/crosshair.gd" id="3_dqkch"]
|
||||
|
|
@ -14,8 +14,10 @@
|
|||
[ext_resource type="Script" uid="uid://bv8sgx78s8hwn" path="res://scripts/player/states/crouching.gd" id="9_oprun"]
|
||||
[ext_resource type="Script" uid="uid://dmy6ahci16los" path="res://scripts/debug/inventory_preview.gd" id="9_ownlk"]
|
||||
[ext_resource type="Script" uid="uid://u0e2b2mvij1k" path="res://scripts/player/states/standing.gd" id="10_a8ls1"]
|
||||
[ext_resource type="Script" uid="uid://vmhlmhd6gjx6" path="res://scripts/gui/hud/player_healthbar.gd" id="11_42l2h"]
|
||||
[ext_resource type="Script" uid="uid://cwasvwhm5yg0o" path="res://scripts/player/states/walk.gd" id="11_qfm1y"]
|
||||
[ext_resource type="Script" uid="uid://cq4i0afwesdm3" path="res://scripts/player/states/falling.gd" id="12_fulsm"]
|
||||
[ext_resource type="Script" uid="uid://gan0amqbhi4i" path="res://scripts/gui/hud/player_ammo_display.gd" id="12_iortg"]
|
||||
[ext_resource type="Script" uid="uid://xsgfbuyje35p" path="res://scripts/player/player_pickup.gd" id="17_fjvrb"]
|
||||
[ext_resource type="Script" uid="uid://doevvmbvhlig8" path="res://scripts/weapon_system/starting_weapon_spawner.gd" id="17_ownlk"]
|
||||
|
||||
|
|
@ -25,6 +27,9 @@ resource_local_to_scene = true
|
|||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_g2els"]
|
||||
height = 1.2958984
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_x73hv"]
|
||||
font_size = 32
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_qhqgy"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
|
|
@ -260,6 +265,34 @@ crosses_offset = 3.0
|
|||
[node name="VisibleDisabler" type="Node" parent="HUD"]
|
||||
script = ExtResource("4_smehm")
|
||||
|
||||
[node name="Healthbar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.874
|
||||
anchor_right = 0.069000006
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -0.2800293
|
||||
offset_right = -0.32000732
|
||||
grow_vertical = 0
|
||||
step = 1.0
|
||||
value = 100.0
|
||||
fill_mode = 3
|
||||
script = ExtResource("11_42l2h")
|
||||
|
||||
[node name="AmmoDisplay" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.96900004
|
||||
anchor_top = 0.96800005
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -0.32006836
|
||||
offset_top = 0.039978027
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
label_settings = SubResource("LabelSettings_x73hv")
|
||||
script = ExtResource("12_iortg")
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_qhqgy")
|
||||
|
||||
|
|
@ -335,7 +368,9 @@ weapon_system = NodePath("../WeaponSystem")
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8543701, 0)
|
||||
shape = SubResource("CapsuleShape3D_3xmak")
|
||||
|
||||
[connection signal="health_changed" from="." to="HUD/Healthbar" method="on_hp_changed"]
|
||||
[connection signal="spawned" from="." to="Camera3D/RayCast3D/TeamUpdater" method="on_spawned"]
|
||||
[connection signal="spawned" from="." to="TeamUpdater" method="on_spawned"]
|
||||
[connection signal="ammo_updated" from="WeaponSystem" to="HUD/AmmoDisplay" method="on_ammo_updated"]
|
||||
|
||||
[editable path="Camera3D/molikman_hands"]
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ properties/0/replication_mode = 1
|
|||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 1
|
||||
properties/2/path = NodePath("StartingPistol:ammo")
|
||||
properties/2/spawn = true
|
||||
properties/2/replication_mode = 1
|
||||
properties/3/path = NodePath("StartingPistol:remaining_ammo")
|
||||
properties/3/spawn = true
|
||||
properties/3/replication_mode = 1
|
||||
|
||||
[node name="DroppableStartingPistol" type="RigidBody3D" node_paths=PackedStringArray("weapon")]
|
||||
collision_layer = 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue