✨ Reload & HUD
This commit is contained in:
@ -101,6 +101,10 @@ rotation_smoothing_enabled = true
|
||||
script = ExtResource("4_fwngj")
|
||||
Noise = SubResource("FastNoiseLite_cfnx7")
|
||||
|
||||
[node name="ReloadTimer" type="Timer" parent="."]
|
||||
wait_time = 6.0
|
||||
one_shot = true
|
||||
|
||||
[node name="DashCountdown" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
|
@ -1,18 +1,25 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bjhmjrldq4lkt"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bjhmjrldq4lkt"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b3gx0bl43lku3" path="res://Scenes/Player.tscn" id="1_vby0g"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvll23f5ibd4v" path="res://Scenes/UI/LaunchScreen.tscn" id="2_7o53i"]
|
||||
[ext_resource type="Script" path="res://Scripts/Launcher.cs" id="2_u5cms"]
|
||||
[ext_resource type="Script" path="res://Scripts/Logic/World.cs" id="3_xwguj"]
|
||||
[ext_resource type="PackedScene" uid="uid://c7w5sgq0bshk0" path="res://Scenes/UI/HUD.tscn" id="5_qvun1"]
|
||||
|
||||
[node name="Node" type="Node"]
|
||||
|
||||
[node name="LaunchScreen" parent="." node_paths=PackedStringArray("Launcher") instance=ExtResource("2_7o53i")]
|
||||
Launcher = NodePath("../LauncherNode")
|
||||
|
||||
[node name="LauncherNode" type="Node" parent="." node_paths=PackedStringArray("World")]
|
||||
[node name="LauncherNode" type="Node" parent="." node_paths=PackedStringArray("World", "Overlay")]
|
||||
script = ExtResource("2_u5cms")
|
||||
World = NodePath("../World")
|
||||
Overlay = NodePath("../OverlayLayer")
|
||||
|
||||
[node name="OverlayLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Hud" parent="OverlayLayer" node_paths=PackedStringArray("World") instance=ExtResource("5_qvun1")]
|
||||
World = NodePath("../../World")
|
||||
|
||||
[node name="World" type="Node2D" parent="."]
|
||||
script = ExtResource("3_xwguj")
|
||||
|
74
Scenes/UI/HUD.tscn
Normal file
74
Scenes/UI/HUD.tscn
Normal file
@ -0,0 +1,74 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c7w5sgq0bshk0"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/UI/HUD.cs" id="1_2iqqk"]
|
||||
|
||||
[node name="Hud" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_2iqqk")
|
||||
|
||||
[node name="TopBox" type="HBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 16.0
|
||||
offset_top = 16.0
|
||||
offset_right = 1136.0
|
||||
offset_bottom = 32.0
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="HealthBox" type="VBoxContainer" parent="TopBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label" type="Label" parent="TopBox/HealthBox"]
|
||||
layout_mode = 2
|
||||
text = "Health 100/100"
|
||||
|
||||
[node name="Bar" type="ProgressBar" parent="TopBox/HealthBox"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 16)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
allow_lesser = true
|
||||
show_percentage = false
|
||||
|
||||
[node name="ActionPointBox" type="VBoxContainer" parent="TopBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label" type="Label" parent="TopBox/ActionPointBox"]
|
||||
layout_mode = 2
|
||||
text = "AP 20/20"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Bar" type="ProgressBar" parent="TopBox/ActionPointBox"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 16)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
allow_lesser = true
|
||||
show_percentage = false
|
||||
|
||||
[node name="AmmoBox" type="VBoxContainer" parent="TopBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label" type="Label" parent="TopBox/AmmoBox"]
|
||||
layout_mode = 2
|
||||
text = "Ammo 30/30"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Bar" type="ProgressBar" parent="TopBox/AmmoBox"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 16)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
allow_lesser = true
|
||||
show_percentage = false
|
@ -25,11 +25,17 @@ offset_bottom = 648.0
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MainTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "AceField
|
||||
Prototype · Closed test"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="NameEdit" type="LineEdit" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Player name"
|
||||
|
||||
[node name="MultiplayerTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
[node name="PlayTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Play the Game"
|
||||
horizontal_alignment = 1
|
||||
|
Reference in New Issue
Block a user