fully sync player movements over network
This commit is contained in:
5
scenes/map/EntitySpawner.gd
Normal file
5
scenes/map/EntitySpawner.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
extends MultiplayerSpawner
|
||||
|
||||
|
||||
func _spawn_custom(data):
|
||||
return
|
||||
@@ -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")
|
||||
|
||||
83
scenes/map/test_map_gd.tscn
Normal file
83
scenes/map/test_map_gd.tscn
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user