[gd_scene load_steps=14 format=3 uid="uid://b00brfkibo5cj"] [ext_resource type="PackedScene" uid="uid://bq654gwim6col" path="res://level/level.glb" id="1_s37in"] [ext_resource type="Environment" uid="uid://covjrwmk4rplw" path="res://level/world_environment.tres" id="2_ptkl6"] [ext_resource type="Script" path="res://level/level.gd" id="2_s1bx6"] [ext_resource type="Script" path="res://level/StaticBody3D.gd" id="4_6rwm2"] [ext_resource type="Script" path="res://addons/smoother/smoother.gd" id="5_2tyle"] [ext_resource type="Script" path="res://level/PlayerSpawner.gd" id="6_7ww0m"] [ext_resource type="MeshLibrary" uid="uid://cgh6y5j8wgi36" path="res://level/mesh_library/level_mesh_library.glb" id="6_d34iv"] [ext_resource type="Script" path="res://level/Ground.gd" id="8_fuivp"] [sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_ujmev"] margin = 2.067 [sub_resource type="BoxShape3D" id="BoxShape3D_qp06x"] size = Vector3(2, 0.1, 2) [sub_resource type="QuadMesh" id="QuadMesh_8lqeb"] size = Vector2(100, 100) [sub_resource type="BoxShape3D" id="BoxShape3D_m3lo5"] [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_285vp"] [sub_resource type="BoxShape3D" id="BoxShape3D_kefm0"] size = Vector3(6.87, 1, 1) [node name="level" instance=ExtResource("1_s37in")] script = ExtResource("2_s1bx6") [node name="WorldEnvironment" type="WorldEnvironment" parent="." index="0"] environment = ExtResource("2_ptkl6") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment" index="0"] transform = Transform3D(1, 0, 0, 0, 0.566018, 0.824393, 0, -0.824393, 0.566018, 0, 13.4573, 0) [node name="Plane" parent="." index="1"] transform = Transform3D(25.5862, 0, 0, 0, 25.5862, 0, 0, 0, 25.5862, 0.00464344, 0, 0.0305362) visible = false [node name="StaticBody3D" type="StaticBody3D" parent="Plane" index="0" groups=["ground"]] script = ExtResource("4_6rwm2") [node name="CollisionShape3D" type="CollisionShape3D" parent="Plane/StaticBody3D" index="0"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0) shape = SubResource("WorldBoundaryShape3D_ujmev") [node name="CollisionShape3D2" type="CollisionShape3D" parent="Plane/StaticBody3D" index="1"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0) shape = SubResource("BoxShape3D_qp06x") [node name="Cube" parent="." index="2"] visible = false [node name="Players" type="Node3D" parent="." index="3"] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4823, 12, 16.4239) [node name="PlayerSpawner" type="MultiplayerSpawner" parent="." index="4"] unique_name_in_owner = true _spawnable_scenes = PackedStringArray("res://player/player.tscn") spawn_path = NodePath("../Players") script = ExtResource("6_7ww0m") [node name="Smoother" type="Node" parent="." index="5"] script = ExtResource("5_2tyle") [node name="GridMap" type="GridMap" parent="." index="6"] visible = false mesh_library = ExtResource("6_d34iv") cell_size = Vector3(0.928, 1.005, 0.928) data = { "cells": PackedInt32Array(2, 3, 655363, 3, 2, 655364, 3, 3, 655364, 4, 3, 655364, 5, 3, 655364, 65540, 5, 655364, 65539, 4, 655364, 65539, 3, 655364, 131075, 3, 655364, 65541, 3, 655366, 65543, 1, 1441813, 65545, 1, 1441813, 65543, 0, 1441813, 65545, 0, 1441813, 6, 3, 1441839, 65542, 3, 1441839, 131078, 3, 1441839, 196614, 3, 1441839, 262150, 3, 1441839, 327686, 3, 1441839, 393222, 3, 1441839, 524294, 3, 1441839, 458758, 3, 1441839, 589830, 3, 1441839, 655366, 3, 1441839, 720902, 3, 1441839, 786438, 3, 1441846, 7, 3, 1441839, 8, 3, 1441839, 9, 3, 1441839, 65543, 3, 1441839, 65544, 3, 1441839, 65545, 3, 1441839, 196617, 3, 1441837, 196616, 3, 1441837, 196615, 3, 1441837, 10, 3, 1048642, 11, 3, 1048642, 12, 3, 1048642, 13, 3, 1048642, 14, 3, 1048642, 15, 3, 1048642, 16, 3, 1048642, 17, 3, 1048642, 18, 3, 1048642, 19, 3, 1048642, 20, 3, 1048642, 21, 3, 1048642, 22, 3, 1048642, 23, 3, 1048642, 24, 3, 1441856, 24, 1, 64, 25, 3, 63, 25, 2, 655433, 25, 1, 655433, 25, 0, 655433, 25, 65535, 655433, 25, 65533, 655433, 25, 65532, 655437, 26, 65534, 655436, 25, 65531, 655425) } metadata/_editor_floor_ = Vector3(0, 0, 3) [node name="GridMap2" type="GridMap" parent="." index="7"] transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 5, 0) mesh_library = ExtResource("6_d34iv") cell_size = Vector3(1, 1, 1) cell_octant_size = 1 data = { "cells": PackedInt32Array(-65535, 65535, 655431, -65536, 65535, 1048620, 65536, 65535, 38, 131072, 65535, 30, 196608, 65535, 30, -65536, 0, 1048647, -1, 65535, 71, -65536, 65534, 1441863, -65535, 0, 63, -1, 0, 1441855, -65535, 65534, 1048639, -1, 65534, 655423, 1, 65534, 1441848, 65535, 65534, 1441848, 65535, 0, 655419, 1, 0, 1441868, 65536, 65534, 1048623, 65537, 65535, 1048623, 131071, 65535, 1048623, 65537, 65534, 65593, 0, 65535, 1048621, 65537, 65533, 1310777, 65536, 65533, 327737, 65537, 0, 65612, 262144, 65535, 52, 131072, 65533, 393271, 196607, 65535, 1048612) } metadata/_editor_floor_ = Vector3(0, 2, 0) [node name="MeshInstance3D" type="MeshInstance3D" parent="." index="8"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.001, 0, 0) mesh = SubResource("QuadMesh_8lqeb") skeleton = NodePath("../Cube") [node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D" index="0"] [node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D" index="0"] transform = Transform3D(100, 0, 0, 0, 100, 0, 0, 0, 1, 0, 0, -0.5) shape = SubResource("BoxShape3D_m3lo5") [node name="StaticBody3D" type="StaticBody3D" parent="." index="9"] [node name="GlobalMessage" type="Label" parent="SharedUI" index="0"] unique_name_in_owner = true layout_mode = 2 offset_right = 1152.0 offset_bottom = 23.0 theme_override_colors/font_color = Color(1, 0, 0, 1) text = "Waiting for at least 2 players to join" horizontal_alignment = 1 [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="10"] replication_config = SubResource("SceneReplicationConfig_285vp") [connection signal="despawned" from="PlayerSpawner" to="." method="client_remove_player"] [connection signal="spawned" from="PlayerSpawner" to="." method="client_add_player"] [node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" index="0"] transform = Transform3D(1.5, 0, 0, 0, 3.2, 0, 0, 0, 10, 5.01694, 11.1202, -5.176) shape = SubResource("BoxShape3D_kefm0") script = ExtResource("8_fuivp")