简易联机实现

This commit is contained in:
2026-09-22 16:56:35 +08:00
parent 020ab88606
commit db60e35766
12 changed files with 434 additions and 5 deletions
+4
View File
@@ -1,6 +1,7 @@
[gd_scene format=3 uid="uid://bekuuw153mv03"]
[ext_resource type="Script" uid="uid://f5ptp3is4agf" path="res://player/player.gd" id="1_oul6g"]
[ext_resource type="SceneReplicationConfig" path="res://player/player_sync.tres" id="2_rkbax"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rkbax"]
radius = 0.4
@@ -39,3 +40,6 @@ fov = 82.2
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_g1dw6")
surface_material_override/0 = SubResource("StandardMaterial3D_yw30f")
[node name="Sync" type="MultiplayerSynchronizer" parent="." unique_id=1979575210]
replication_config = ExtResource("2_rkbax")