fully sync player movements over network

This commit is contained in:
2023-01-17 13:54:26 +01:00
parent 1ef5d54d6c
commit 9893bc45b4
19 changed files with 434 additions and 62 deletions

View File

@@ -0,0 +1,5 @@
extends MultiplayerSpawner
func _spawn_custom(data):
return

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=6 format=3 uid="uid://8g7w4uv2xsck"]
[gd_scene load_steps=7 format=3 uid="uid://8g7w4uv2xsck"]
[ext_resource type="Script" path="res://Game.gd" id="1_71dcv"]
[ext_resource type="PackedScene" uid="uid://dsnlwjofq6psf" path="res://scenes/GUI/Main Menu.tscn" id="2_448f8"]
[ext_resource type="Script" path="res://scenes/map/EntitySpawner.gd" id="3_i5esv"]
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_2n8qo"]
@@ -34,6 +35,10 @@ environment = SubResource("Environment_oqaam")
[node name="Networking" type="Node" parent="."]
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="Networking"]
[node name="PlayerSpawner" type="MultiplayerSpawner" parent="Networking"]
_spawnable_scenes = PackedStringArray("res://entities/Player.tscn")
spawn_path = NodePath("../..")
spawn_path = NodePath("..")
[node name="EntitySpawner" type="MultiplayerSpawner" parent="Networking"]
spawn_path = NodePath("..")
script = ExtResource("3_i5esv")

File diff suppressed because one or more lines are too long