diff options
Diffstat (limited to 'Game/Player.tscn')
-rw-r--r-- | Game/Player.tscn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Game/Player.tscn b/Game/Player.tscn new file mode 100644 index 0000000..38e1d48 --- /dev/null +++ b/Game/Player.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=3 format=3 uid="uid://fvspuiqj0osm"] + +[ext_resource type="Script" path="res://Game/Player.gd" id="1_37njm"] + +[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_6h1lm"] +properties/0/path = NodePath(".:score") +properties/0/spawn = true +properties/0/replication_mode = 2 +properties/1/path = NodePath(".:username") +properties/1/spawn = true +properties/1/replication_mode = 2 +properties/2/path = NodePath(".:id") +properties/2/spawn = true +properties/2/replication_mode = 0 + +[node name="Player" type="Node"] +script = ExtResource("1_37njm") + +[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."] +replication_config = SubResource("SceneReplicationConfig_6h1lm") + +[connection signal="score_changed" from="." to="." method="_on_score_changed"] +[connection signal="delta_synchronized" from="MultiplayerSynchronizer" to="." method="_on_multiplayer_synchronizer_delta_synchronized"] +[connection signal="synchronized" from="MultiplayerSynchronizer" to="." method="_on_multiplayer_synchronizer_synchronized"] |