Multiplayer connects but needs to load players and finish setup checks.

This commit is contained in:
2025-12-04 21:10:12 -05:00
parent 5d8452c70d
commit c6da8344a4
7 changed files with 82 additions and 42 deletions

View File

@@ -12,7 +12,6 @@ grow_vertical = 2
script = ExtResource("1_lckj3")
[node name="Panel" type="PanelContainer" parent="."]
visible = false
custom_minimum_size = Vector2(400, 400)
layout_mode = 1
anchors_preset = 8
@@ -45,6 +44,7 @@ text = "Back"
[node name="Hosting" type="VBoxContainer" parent="Panel"]
unique_name_in_owner = true
visible = false
layout_mode = 2
alignment = 1
@@ -60,7 +60,7 @@ layout_mode = 2
layout_mode = 2
text = "Handle"
[node name="HandleEdit" type="TextEdit" parent="Panel/Hosting/HBoxContainer"]
[node name="HostHandle" type="TextEdit" parent="Panel/Hosting/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
@@ -87,7 +87,8 @@ horizontal_alignment = 1
[node name="PanelContainer" type="PanelContainer" parent="Panel/Host Waiting"]
layout_mode = 2
[node name="TextEdit" type="RichTextLabel" parent="Panel/Host Waiting/PanelContainer"]
[node name="ParticipantsText" type="RichTextLabel" parent="Panel/Host Waiting/PanelContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 70)
layout_mode = 2
size_flags_horizontal = 3
@@ -121,7 +122,8 @@ layout_mode = 2
layout_mode = 2
text = "HANDLE"
[node name="TextEdit" type="TextEdit" parent="Panel/Joining/HBoxContainer"]
[node name="JoinHandle" type="TextEdit" parent="Panel/Joining/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3

View File

@@ -1,30 +1,21 @@
[gd_scene load_steps=9 format=3 uid="uid://ti65jukt8gvs"]
[gd_scene load_steps=6 format=3 uid="uid://ti65jukt8gvs"]
[ext_resource type="PackedScene" uid="uid://bgocskbofewsr" path="res://templates/HUD.tscn" id="1_q2h5d"]
[ext_resource type="Texture2D" uid="uid://bj07x13pkoevk" path="res://visuals/textures/tile.png" id="2_02mmr"]
[ext_resource type="Script" uid="uid://cymi1n4gavixy" path="res://scripts/level_camera.gd" id="3_qfwdi"]
[ext_resource type="Script" uid="uid://wpjuowslx60b" path="res://scripts/multiplayer_controller.gd" id="4_q2h5d"]
[ext_resource type="PackedScene" uid="uid://cqe6hkn2oncpc" path="res://templates/multiplayer_pc.tscn" id="4_q2h5d"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gbhdq"]
albedo_texture = ExtResource("2_02mmr")
uv1_scale = Vector3(100, 100, 100)
texture_filter = 0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y646j"]
albedo_color = Color(0.08468992, 0.08468992, 0.08468992, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lnbra"]
albedo_color = Color(0, 1, 1, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_6emce"]
size = Vector3(0.75, 2, 0.75)
[node name="Node3D" type="Node3D"]
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = 1000
[node name="Control" parent="CanvasLayer" instance=ExtResource("1_q2h5d")]
[node name="HUD" parent="CanvasLayer" instance=ExtResource("1_q2h5d")]
[node name="CSGBox3D" type="CSGBox3D" parent="."]
size = Vector3(100, 1, 100)
@@ -36,25 +27,8 @@ projection = 1
size = 5.0
script = ExtResource("3_qfwdi")
[node name="Node3D" type="CharacterBody3D" parent="."]
[node name="MultiplayerPC" parent="." instance=ExtResource("4_q2h5d")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
script = ExtResource("4_q2h5d")
speed = 5.0
[node name="Body" type="CSGBox3D" parent="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
size = Vector3(0.75, 2, 0.75)
material = SubResource("StandardMaterial3D_y646j")
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Node3D/Body"]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0.5, 0.556)
radius = 0.3
height = 0.1
material = SubResource("StandardMaterial3D_lnbra")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("BoxShape3D_6emce")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.508709, 0)