make level work without multiplayer
This commit is contained in:
parent
f9847bcb37
commit
ba14ca7ea0
|
@ -1,5 +1,12 @@
|
|||
extends Node3D
|
||||
|
||||
func _ready():
|
||||
# Hacky way to start level without going though multiplayer screens
|
||||
if get_parent() == get_tree().root:
|
||||
var player := preload("res://player/player.tscn").instantiate()
|
||||
player.add_child(preload("res://camera/camera.tscn").instantiate())
|
||||
%Players.add_child(player)
|
||||
|
||||
# Called from the server
|
||||
func server_add_player(id: int):
|
||||
%PlayerSpawner.spawn(id)
|
||||
|
|
|
@ -34,6 +34,7 @@ shape = SubResource("BoxShape3D_qp06x")
|
|||
|
||||
[node name="Players" type="Node3D" parent="." index="3"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 12, 0)
|
||||
|
||||
[node name="PlayerSpawner" type="MultiplayerSpawner" parent="." index="4"]
|
||||
unique_name_in_owner = true
|
||||
|
@ -47,5 +48,6 @@ script = ExtResource("5_2tyle")
|
|||
[node name="GridMap" type="GridMap" parent="." index="6"]
|
||||
mesh_library = ExtResource("6_d34iv")
|
||||
data = {
|
||||
"cells": PackedInt32Array(65533, 65533, 1, 0, 65533, 0, 4, 65532, 0, 4, 65533, 0, 5, 65533, 0, 6, 65534, 0, 6, 65533, 0, 5, 65532, 0, 65535, 65531, 0, 0, 65530, 0, 1, 65530, 0, 4, 65528, 0, 3, 65528, 0, 65534, 65528, 0, 2, 65533, 0, 2, 2, 1, 7, 4, 0, 7, 3, 0, 7, 2, 0, 7, 1, 0, 7, 0, 0, 7, 65535, 0, 65533, 6, 0, 65534, 6, 0, 65535, 6, 0, 0, 6, 0, 1, 6, 0, 4, 9, 0, 4, 8, 0, 4, 7, 0, 4, 6, 0, 3, 7, 1, 8, 6, 1)
|
||||
"cells": PackedInt32Array(65533, 65533, 1, 0, 65533, 0, 4, 65532, 0, 4, 65533, 0, 5, 65533, 0, 6, 65534, 0, 6, 65533, 0, 5, 65532, 0, 65535, 65531, 0, 0, 65530, 0, 1, 65530, 0, 4, 65528, 0, 3, 65528, 0, 65534, 65528, 0, 2, 65533, 0, 2, 2, 1, 7, 3, 0, 7, 2, 0, 7, 1, 0, 7, 0, 1, 7, 65535, 1, 65533, 6, 0, 65534, 6, 0, 65535, 6, 0, 0, 6, 0, 4, 9, 0, 4, 8, 0, 3, 7, 1, 8, 6, 1, 3, 9, 1, 3, 8, 1, 3, 6, 1, 5, 8, 1, 65534, 7, 1, 65535, 7, 1, 0, 7, 1, 65533, 5, 1, 65534, 5, 1, 65535, 5, 1, 0, 5, 1, 1, 5, 1, 5, 4, 1, 5, 3, 1, 6, 3, 1, 6, 2, 1, 6, 1, 1, 6, 0, 1, 8, 3, 1, 8, 2, 1, 8, 1, 1, 8, 0, 1, 15, 1, 1, 15, 65534, 1, 65530, 7, 1, 65531, 7, 1, 65531, 8, 1, 65532, 8, 1, 65532, 9, 1, -327680, 65533, 655361, -327680, 65532, 655361, -393216, 65532, 655361, -458752, 65532, 655361, -458752, 65531, 655361, -524288, 65531, 655361, -589824, 65531, 655361, -655360, 65530, 655361, -720896, 65530, 655361, -786432, 65530, 655361, -786432, 65529, 655361, -917504, 65529, 655361, -983040, 65528, 655361, -1048576, 65528, 655361, -983040, 65529, 655361, -851968, 65530, 655361, -786432, 65531, 655361, -655360, 65532, 655361, -524288, 65533, 655361, -458752, 65534, 655361, -393216, 65534, 655361, -327680, 65535, 655361, -262144, 65535, 655361, -196608, 0, 655361, -131072, 0, 655361, -65536, 0, 655361, -65536, 1, 655361, 0, 1, 655361, 65536, 1, 655361, 131072, 1, 655361, 196608, 1, 655361, 196608, 2, 655361, 131072, 0, 655361, 65536, 0, 655361, 0, 65535, 655361, -65536, 65535, 655361, -131072, 65534, 655361, -196608, 65533, 655361, -393216, 65531, 655361, -524288, 65530, 655361, -589824, 65530, 655361, -655360, 65529, 655361, -196608, 65534, 655361, 6, 65529, 655361, 65542, 65528, 655361, 131078, 65527, 655361, 196614, 65526, 655361, 262150, 65525, 655361, 327686, 65524, 655361, 393222, 65523, 655361, 458758, 65522, 655361, 524294, 65521, 655361)
|
||||
}
|
||||
metadata/_editor_floor_ = Vector3(6, 0, 0)
|
||||
|
|
Loading…
Reference in New Issue