✨ Player name
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
[ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
|
||||
radius = 20.48
|
||||
radius = 25.6
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_cfnx7"]
|
||||
|
||||
@ -21,6 +21,27 @@ properties/1/replication_mode = 1
|
||||
properties/2/path = NodePath("RotationCentre:rotation")
|
||||
properties/2/spawn = true
|
||||
properties/2/replication_mode = 1
|
||||
properties/3/path = NodePath(".:PlayerName")
|
||||
properties/3/spawn = true
|
||||
properties/3/replication_mode = 1
|
||||
properties/4/path = NodePath(".:Health")
|
||||
properties/4/spawn = true
|
||||
properties/4/replication_mode = 1
|
||||
properties/5/path = NodePath(".:MaxHealth")
|
||||
properties/5/spawn = true
|
||||
properties/5/replication_mode = 1
|
||||
properties/6/path = NodePath(".:ActionPoints")
|
||||
properties/6/spawn = true
|
||||
properties/6/replication_mode = 1
|
||||
properties/7/path = NodePath(".:MaxActionPoints")
|
||||
properties/7/spawn = true
|
||||
properties/7/replication_mode = 1
|
||||
properties/8/path = NodePath(".:AmmoAmount")
|
||||
properties/8/spawn = true
|
||||
properties/8/replication_mode = 1
|
||||
properties/9/path = NodePath(".:MaxAmmoAmount")
|
||||
properties/9/spawn = true
|
||||
properties/9/replication_mode = 1
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_hojn2"]
|
||||
properties/0/path = NodePath("InputSynchronizer:IsDashing")
|
||||
@ -36,22 +57,22 @@ PlayerCamera = NodePath("Camera2D")
|
||||
PlayerInput = NodePath("InputSynchronizer")
|
||||
BulletScene = ExtResource("2_nmop0")
|
||||
|
||||
[node name="HUD" type="VBoxContainer" parent="."]
|
||||
[node name="Overlay" type="VBoxContainer" parent="."]
|
||||
offset_left = -90.0
|
||||
offset_top = -80.0
|
||||
offset_top = -86.0
|
||||
offset_right = 90.0
|
||||
offset_bottom = -20.0
|
||||
offset_bottom = -26.0
|
||||
theme_override_constants/separation = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="NameTag" type="Label" parent="HUD"]
|
||||
[node name="NameTag" type="Label" parent="Overlay"]
|
||||
layout_mode = 2
|
||||
text = "Player"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
clip_text = true
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="HUD"]
|
||||
[node name="HealthBar" type="ProgressBar" parent="Overlay"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 8)
|
||||
layout_mode = 2
|
||||
rounded = true
|
||||
@ -63,7 +84,7 @@ show_percentage = false
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="RotationCentre"]
|
||||
position = Vector2(2.08165e-12, 2.08165e-12)
|
||||
scale = Vector2(0.04, 0.04)
|
||||
scale = Vector2(0.05, 0.05)
|
||||
texture = ExtResource("1_cqpqa")
|
||||
|
||||
[node name="Muzzle" type="Marker2D" parent="RotationCentre"]
|
||||
|
@ -1,13 +1,13 @@
|
||||
[gd_scene load_steps=5 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/StartScreen.tscn" id="2_7o53i"]
|
||||
[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"]
|
||||
|
||||
[node name="Node" type="Node"]
|
||||
|
||||
[node name="StartScreen" parent="." node_paths=PackedStringArray("Launcher") instance=ExtResource("2_7o53i")]
|
||||
[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")]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bvll23f5ibd4v"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/UI/StartScreen.cs" id="1_f8by8"]
|
||||
[ext_resource type="Script" path="res://Scripts/UI/LaunchScreen.cs" id="1_hiet3"]
|
||||
|
||||
[node name="StartScreen" type="Control" node_paths=PackedStringArray("ServerPortInput", "ServerAddrInput", "StartAsSingleButton", "StartAsServerButton", "StartAsClientButton")]
|
||||
[node name="LaunchScreen" type="Control" node_paths=PackedStringArray("PlayerNameInput", "ServerPortInput", "ServerAddrInput", "StartAsServerButton", "StartAsClientButton")]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@ -10,10 +10,10 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_f8by8")
|
||||
script = ExtResource("1_hiet3")
|
||||
PlayerNameInput = NodePath("CenterContainer/VBoxContainer/NameEdit")
|
||||
ServerPortInput = NodePath("CenterContainer/VBoxContainer/PortEdit")
|
||||
ServerAddrInput = NodePath("CenterContainer/VBoxContainer/AddrEdit")
|
||||
StartAsSingleButton = NodePath("CenterContainer/VBoxContainer/PlayAloneButton")
|
||||
StartAsServerButton = NodePath("CenterContainer/VBoxContainer/MultiplayerActions/HostButton")
|
||||
StartAsClientButton = NodePath("CenterContainer/VBoxContainer/MultiplayerActions/ConnectButton")
|
||||
|
||||
@ -25,18 +25,13 @@ offset_bottom = 648.0
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SinglePlayerTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
[node name="NameEdit" type="LineEdit" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Singleplayer"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PlayAloneButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Play Alone"
|
||||
placeholder_text = "Player name"
|
||||
|
||||
[node name="MultiplayerTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Mutiplayer"
|
||||
text = "Play the Game"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PortEdit" type="LineEdit" parent="CenterContainer/VBoxContainer"]
|
Reference in New Issue
Block a user