From 59c62b73e69ea92387af37ad462fa6de14375175 Mon Sep 17 00:00:00 2001 From: JonShard Date: Tue, 28 Jul 2026 21:16:35 +0200 Subject: [PATCH] Test multi cube --- Scenes/JonScene.tscn | 13 ++++++++----- Scenes/add_spawnables.gd | 10 ++++++++++ Scenes/add_spawnables.gd.uid | 1 + Stations/csg_box_3d.tscn | 3 +++ 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 Scenes/add_spawnables.gd create mode 100644 Scenes/add_spawnables.gd.uid create mode 100644 Stations/csg_box_3d.tscn diff --git a/Scenes/JonScene.tscn b/Scenes/JonScene.tscn index a2abefe..4bccff0 100644 --- a/Scenes/JonScene.tscn +++ b/Scenes/JonScene.tscn @@ -4,6 +4,7 @@ [ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_o1b3t"] [ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://Textures/dev_material_3d.tres" id="3_irf4n"] [ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://Stations/Hob.tscn" id="4_ctden"] +[ext_resource type="Script" uid="uid://ctsqvhicswj8m" path="res://Scenes/add_spawnables.gd" id="5_n8fyw"] [ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"] [ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://Stations/BurgerBunsDispenser.tscn" id="9_sq0s2"] [ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://Stations/raw_burger_dispenser.tscn" id="11_ctden"] @@ -48,14 +49,16 @@ environment = SubResource("Environment_bvwq1") [node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9667189, 0) -[node name="WorldContent" type="Node3D" parent="."] +[node name="WorldContent" type="Node3D" parent="." unique_id=262398468] -[node name="Players" type="Node3D" parent="."] +[node name="Players" type="Node3D" parent="." unique_id=1772076868] -[node name="ItemsSpawner" type="MultiplayerSpawner" parent="."] +[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581] +_spawnable_scenes = PackedStringArray("uid://cwwnbx5uat3fw") spawn_path = NodePath("../WorldContent") +script = ExtResource("5_n8fyw") -[node name="PlayersSpawner" type="MultiplayerSpawner" parent="."] +[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427] _spawnable_scenes = PackedStringArray("res://Player/net_player.tscn") spawn_path = NodePath("../Players") @@ -116,7 +119,7 @@ transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.5 transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.5477214, 0.5115016, 0.49258912) [node name="Counter5" parent="Counter3" unique_id=200341072 instance=ExtResource("15_di04w")] -transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 1.8051152, 0, 3.5603657) +transform = Transform3D(-1, 0, 4.371139e-08, 0, 1, 0, -4.371139e-08, 0, -1, -0.12681937, 2.3841858e-07, 3.538899) [node name="BurgerBunsDispenser" parent="." unique_id=1720683779 instance=ExtResource("9_sq0s2")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5242664, 0.008738995, 1.1073059) diff --git a/Scenes/add_spawnables.gd b/Scenes/add_spawnables.gd new file mode 100644 index 0000000..d20cab4 --- /dev/null +++ b/Scenes/add_spawnables.gd @@ -0,0 +1,10 @@ +extends MultiplayerSpawner + + +func _ready() -> void: + add_spawnable_scene("res://Stations/csg_box_3d.tscn") + + + +func _process(delta: float) -> void: + pass diff --git a/Scenes/add_spawnables.gd.uid b/Scenes/add_spawnables.gd.uid new file mode 100644 index 0000000..341408f --- /dev/null +++ b/Scenes/add_spawnables.gd.uid @@ -0,0 +1 @@ +uid://ctsqvhicswj8m diff --git a/Stations/csg_box_3d.tscn b/Stations/csg_box_3d.tscn new file mode 100644 index 0000000..3c17705 --- /dev/null +++ b/Stations/csg_box_3d.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://cwwnbx5uat3fw"] + +[node name="CSGBox3D" type="CSGBox3D" unique_id=725518829]