add basic networking
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bvleufyobery5"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bvleufyobery5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="1_82m0t"]
|
||||
|
||||
@@ -9,7 +9,19 @@
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_v4nai"]
|
||||
size = Vector3(0.4, 0.4, 0.8)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_j6f6x"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 1
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 1
|
||||
properties/2/path = NodePath("Camera3D:rotation")
|
||||
properties/2/spawn = true
|
||||
properties/2/replication_mode = 1
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
collision_layer = 2
|
||||
script = ExtResource("1_82m0t")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
@@ -22,8 +34,14 @@ mesh = SubResource("CapsuleMesh_5kiq6")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
||||
current = true
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Camera3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2)
|
||||
mesh = SubResource("BoxMesh_v4nai")
|
||||
|
||||
[node name="NameLabel" type="Label3D" parent="."]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 2.15, 0)
|
||||
text = "name"
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_j6f6x")
|
||||
|
||||
Reference in New Issue
Block a user