Compare commits
166 Commits
588d11a9ff
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cd466c73b5 | |||
| acb96933a7 | |||
| d895bc0a47 | |||
| 4f9e22f0b9 | |||
| d83e276c52 | |||
| 0bb00735b2 | |||
| 4a8d5b879e | |||
| 1a7f641974 | |||
| f0bb044d12 | |||
| 08c3950583 | |||
| 9f33ee68c2 | |||
| 20a437681a | |||
| c18b09ab31 | |||
| 3153df7baa | |||
| 8ecde66441 | |||
| d7ccab2e3c | |||
| f28c987a3a | |||
| 9e0c3ed174 | |||
| 5ced240c43 | |||
| e65243055c | |||
| c159d26d4e | |||
| 1e1aa15b68 | |||
| d6142ef592 | |||
| bd30f22e4e | |||
| ffa0cd46a4 | |||
| f7a5791509 | |||
| 55d0c72b59 | |||
| d47a8be10c | |||
| 66f53c4a5f | |||
| 28e4ac6016 | |||
| 2efeb2dd24 | |||
| 88dcfbafdf | |||
| b4a32b7a5e | |||
| 4f8c96d089 | |||
| a0a1c504c1 | |||
| 9ea7a045f4 | |||
| 58adbf83e2 | |||
| 6a591b9e3a | |||
| 70d41fc21b | |||
| 4bfb72d749 | |||
| 3ae1e089aa | |||
| bd43b0bd1e | |||
| 7648ecbac9 | |||
| bf31f85b02 | |||
| dbaad35e50 | |||
| 513ad23e09 | |||
| 9cdf72dc47 | |||
| cf4b4ac32e | |||
| f156379ff3 | |||
| d82f856b1a | |||
| ddf37cc0ae | |||
| aa4ffd6346 | |||
| 85960df6b2 | |||
| eae9e56da7 | |||
| 1196036973 | |||
| d4a724dddf | |||
| d5c162a51a | |||
| 1cf3afd440 | |||
| 97e09b9c12 | |||
| 528f66627b | |||
| 3646992e35 | |||
| c7840d3cc7 | |||
| dde627d05b | |||
| 661210eac8 | |||
| 2e8c12cb8a | |||
| 58f7da7481 | |||
| c3671c4489 | |||
| b24a3f99ee | |||
| 71c338da3c | |||
| ad9753c65d | |||
| 1117d90da6 | |||
| 10bb7cd5bf | |||
| 2e670129a5 | |||
| b169b5d05e | |||
| a5c7df29cc | |||
| 3f67b03a4e | |||
| 247a7e316d | |||
| ee169a62b6 | |||
| 6f01e20700 | |||
| 4242325c8a | |||
| 48c9845624 | |||
| 3d616bf4a5 | |||
| 89e72c161b | |||
| a606a2f93f | |||
| 0826f29265 | |||
| 8a93ae4816 | |||
| 257c838255 | |||
| 58e7792b62 | |||
| 8733d59084 | |||
| e4403e4a50 | |||
| 19207e7f72 | |||
| e9a7786cab | |||
| 9cdf0fc787 | |||
| d71f3824cf | |||
| dfc081de3b | |||
| 59c62b73e6 | |||
| a2bad29f2a | |||
| 0ddada4568 | |||
| 96ea2dd1ea | |||
| 8b6f444d55 | |||
| 29326f4b78 | |||
| e5aa13cef7 | |||
| 7479cbd656 | |||
| f760c8c9f7 | |||
| 8e14fb0f29 | |||
| 6346d563e0 | |||
| fd7f9f3a22 | |||
| e002c2fb4a | |||
| 0872271c8c | |||
| b9c9a3b73a | |||
| 7d694de307 | |||
| 3f951fef64 | |||
| 11b4d3c138 | |||
| bbf982c2f6 | |||
| 69175e7b5e | |||
| 1a893ba9aa | |||
| 29083a4250 | |||
| 57f1cd167a | |||
| f3abe69eb4 | |||
| b1a2098a08 | |||
| 71580ad183 | |||
| d0c13effa2 | |||
| 688eca13fa | |||
| c758771a75 | |||
| d2f5e1fd4f | |||
| 5dae9c5779 | |||
| 488feff7dc | |||
| b7775e9de6 | |||
| 01587e3b9c | |||
| f4b2e687b5 | |||
| 34a649f507 | |||
| e04c5519d0 | |||
| 7ac87984bc | |||
| 776aaa3020 | |||
| 5ca64b8dff | |||
| ae3e7ec674 | |||
| 23ec41c1d6 | |||
| 33ef81306d | |||
| 50efeeb353 | |||
| 71d01e5be1 | |||
| 87641dd55c | |||
| d65b2ca863 | |||
| 0af0c1bfc1 | |||
| 428f00a812 | |||
| 773cf647d8 | |||
| 61ea80b933 | |||
| f6ac103233 | |||
| 17d20440da | |||
| a9ca11fd17 | |||
| 13567e5dd3 | |||
| 4ca0a05d1b | |||
| 596d777fae | |||
| f7024db98d | |||
| 265dd12b37 | |||
| a1cb484ca5 | |||
| ab6cce3d9a | |||
| b6372c532a | |||
| fc2c854305 | |||
| bd2ee722df | |||
| a48611c0ff | |||
| f0e3ba705d | |||
| 714d813344 | |||
| 847af48394 | |||
| 4d06e72bc1 | |||
| 840908e9ff | |||
| b0fd26f3da |
@@ -1,3 +1,7 @@
|
|||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
|
.build/
|
||||||
/android/
|
/android/
|
||||||
|
/logs
|
||||||
|
|
||||||
|
*.log
|
||||||
|
|||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"godotTools.editorPath.godot4": "c:\\Program Files (x86)\\Godot\\Godot_v4.7-stable_win64.exe"
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Instructions
|
||||||
|
|
||||||
|
- Never do any commits.
|
||||||
|
- Keep answers short and concise.
|
||||||
|
- Don't do huge comments. Make them very short and only when necessary.
|
||||||
|
- Any comment that doesn't add more context than the code already provides should be omitted.
|
||||||
|
- Match the comment style of the rest of the project.
|
||||||
|
- Instead of commenting a block about what a function does, use short one-liner comments over sections of code within it. For example, where there are nested for loops and if statements, have one comment saying `# Find node based on criteria`.
|
||||||
|
- Always check syntax with the game engine.
|
||||||
|
- Read logs to confirm expected behavior when possible.
|
||||||
|
|
||||||
|
## About the project
|
||||||
|
- All players will always play as clients. The server will be headless.
|
||||||
+168
-48
@@ -1,5 +1,7 @@
|
|||||||
|
class_name ItemContainer
|
||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
|
@export var enabled: bool = true
|
||||||
@export var target_group : String # Items with this tag can be added to the container
|
@export var target_group : String # Items with this tag can be added to the container
|
||||||
@export var meal_positions: Array[Node3D] = []
|
@export var meal_positions: Array[Node3D] = []
|
||||||
@export var side_positions: Array[Node3D] = []
|
@export var side_positions: Array[Node3D] = []
|
||||||
@@ -17,69 +19,187 @@ var contained_items: Array[FoodItem] # Expose nice list of others to read
|
|||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
area_3d.body_entered.connect(_on_body_entered)
|
area_3d.body_entered.connect(_on_body_entered)
|
||||||
if not area_3d:
|
if not area_3d:
|
||||||
push_error("Area3D node not found in container.gd")
|
SweetLogger.warning("{0} missing area_3d reference", [name])
|
||||||
if not xr_pickable:
|
if not xr_pickable:
|
||||||
push_error("XRPickable node not found in container.gd")
|
SweetLogger.warning("{0} missing xr_pickable reference", [name])
|
||||||
|
|
||||||
|
|
||||||
|
# Absorbing items is a server decision (the container's holder is server-
|
||||||
|
# snapped into a station, matching table.gd/hob.gd's convention).
|
||||||
func _on_body_entered(body: Node3D) -> void:
|
func _on_body_entered(body: Node3D) -> void:
|
||||||
# Container fill mutates world state (reparent/freeze); run only on the
|
|
||||||
# world owner. Item transforms replicate to clients via each item's
|
|
||||||
# MultiplayerSynchronizer (global_transform), so contents follow the plate.
|
|
||||||
if not NetworkManager.owns_world():
|
if not NetworkManager.owns_world():
|
||||||
return
|
return
|
||||||
|
SweetLogger.debug("Enabled: {0}", [enabled])
|
||||||
|
if not enabled:
|
||||||
|
SweetLogger.debug("Disabled in _on_body_entered body")
|
||||||
|
return
|
||||||
if not body.is_in_group(target_group):
|
if not body.is_in_group(target_group):
|
||||||
return
|
return
|
||||||
|
SweetLogger.debug("Body: {0}", [body])
|
||||||
|
|
||||||
|
|
||||||
|
# If one of us is in a station
|
||||||
var picked_by = xr_pickable.get_picked_up_by()
|
var picked_by = xr_pickable.get_picked_up_by()
|
||||||
if picked_by and picked_by.is_in_group("station"):
|
var body_pickable = body as XRToolsPickable
|
||||||
|
var body_picked_by = body_pickable.get_picked_up_by() if body_pickable else null
|
||||||
# If compatible and enough space, add item
|
if (picked_by and picked_by.is_in_group("station_zone")) or (body_picked_by and body_picked_by.is_in_group("station_zone")):
|
||||||
|
|
||||||
|
# If enough space, add item
|
||||||
var food_item = body.get_node("FoodItem")
|
var food_item = body.get_node("FoodItem")
|
||||||
print("Container in station found %s of type %s: %s" % [target_group, FoodItem.Type.keys()[food_item.type], body.name])
|
SweetLogger.debug("In station found {0} of type {1}: {2}", [target_group, FoodItem.Type.keys()[food_item.type], body.name], "container.gd", "_on_body_entered")
|
||||||
if food_item.type == FoodItem.Type.MEAL and _meal_container.get_child_count() < meal_positions.size():
|
var meal_count := contained_items.filter(func(f): return f.type == FoodItem.Type.MEAL).size()
|
||||||
print("Container adding meal")
|
var side_count := contained_items.filter(func(f): return f.type == FoodItem.Type.SIDE).size()
|
||||||
_add_item(body, meal_positions, _meal_container)
|
if food_item.type == FoodItem.Type.MEAL and meal_count < meal_positions.size():
|
||||||
if food_item.type == FoodItem.Type.SIDE and _side_container.get_child_count() < side_positions.size():
|
SweetLogger.debug("Adding meal")
|
||||||
print("Container adding side")
|
_add_item(body)
|
||||||
_add_item(body, side_positions, _side_container)
|
if food_item.type == FoodItem.Type.SIDE and side_count < side_positions.size():
|
||||||
|
SweetLogger.debug("Adding side")
|
||||||
|
_add_item(body)
|
||||||
|
|
||||||
|
|
||||||
func _add_item(item: Node3D, positions: Array[Node3D], container_root: Node3D) -> void:
|
|
||||||
|
# Contents are synced as data (ids on the plate's PlateController), not
|
||||||
|
# reparented nodes: reparenting a MultiplayerSpawner-tracked item out of
|
||||||
|
# WorldContent would despawn it on every client the instant it happened.
|
||||||
|
func _add_item(item: Node3D) -> void:
|
||||||
var pickable = item as XRToolsPickable
|
var pickable = item as XRToolsPickable
|
||||||
var rigidbody = item as RigidBody3D
|
if pickable and pickable.is_picked_up():
|
||||||
|
pickable.drop()
|
||||||
# Drop item
|
|
||||||
if pickable:
|
var food_node := item.get_node_or_null("FoodItem") as FoodItem
|
||||||
if pickable.is_picked_up():
|
if not food_node:
|
||||||
pickable.drop()
|
return
|
||||||
pickable.enabled = false
|
|
||||||
|
# Copy the data out before despawning the real item.
|
||||||
# Freeze the rigid body and disable its collisions so it doesn't fight the container
|
var data := FoodItem.new()
|
||||||
if rigidbody:
|
data.id = food_node.id
|
||||||
rigidbody.freeze = true
|
data.type = food_node.type
|
||||||
rigidbody.freeze_mode = RigidBody3D.FREEZE_MODE_KINEMATIC
|
data.sell_value = food_node.sell_value
|
||||||
rigidbody.process_mode = PROCESS_MODE_DISABLED
|
contained_items.append(data)
|
||||||
# Optional: Disable collision layer/mask so it doesn't bump into other food
|
|
||||||
rigidbody.collision_layer = 0
|
var plate_controller := xr_pickable.get_node_or_null("PlateController") as PlateController
|
||||||
rigidbody.collision_mask = 0
|
if plate_controller:
|
||||||
|
# Reassign rather than append in place. contained_ids has a setter that
|
||||||
item.reparent(container_root, false) # false = discard global transform
|
# rebuilds the plate's visuals, and mutating the array never triggers it —
|
||||||
|
# so the peer that actually added the food was the one peer that never
|
||||||
# Get target position index
|
# redrew the plate. Remote peers looked right (the synchronizer assigns
|
||||||
var target_slot_index = container_root.get_child_count() - 1
|
# the value there, which does fire the setter), and the stale peer only
|
||||||
if target_slot_index < positions.size():
|
# caught up if someone else took the plate and sent the value back.
|
||||||
item.position = positions[target_slot_index].position
|
# duplicate() keeps the Array[String] typing that the property requires.
|
||||||
item.rotation = positions[target_slot_index].rotation
|
var updated := plate_controller.contained_ids.duplicate()
|
||||||
|
updated.append(food_node.id)
|
||||||
# Add to list
|
plate_controller.contained_ids = updated
|
||||||
var food_node = item.get_node_or_null("FoodItem")
|
|
||||||
if food_node:
|
NetworkManager.despawn_item(item)
|
||||||
contained_items.append(food_node as FoodItem)
|
# In case the container is on a table that needs to register this addition,
|
||||||
|
# ask all table in scene to absorb any new items.
|
||||||
|
SweetLogger.debug("Group call absorb_items()")
|
||||||
|
get_tree().call_group("table", "absorb_items")
|
||||||
|
|
||||||
|
|
||||||
|
func erase_item(item: FoodItem) -> void:
|
||||||
|
contained_items.erase(item)
|
||||||
|
var plate_controller := xr_pickable.get_node_or_null("PlateController") as PlateController
|
||||||
|
if plate_controller:
|
||||||
|
# Same reason as _add_item: assign so the visuals actually refresh.
|
||||||
|
var remaining := plate_controller.contained_ids.duplicate()
|
||||||
|
remaining.erase(item.id)
|
||||||
|
plate_controller.contained_ids = remaining
|
||||||
|
|
||||||
|
|
||||||
func clear() -> void:
|
func clear() -> void:
|
||||||
# delete all nodes in containers and contained_items
|
contained_items.clear()
|
||||||
pass
|
var plate_controller := xr_pickable.get_node_or_null("PlateController") as PlateController
|
||||||
|
if plate_controller:
|
||||||
|
plate_controller.contained_ids = []
|
||||||
|
|
||||||
|
|
||||||
|
## Rebuilds the purely-cosmetic visual representation of the plate's contents
|
||||||
|
## from a synced id list. Runs on every peer (called from PlateController
|
||||||
|
## whenever contained_ids changes, whether set locally or by the network).
|
||||||
|
func refresh_visuals(ids: Array[String]) -> void:
|
||||||
|
for child in _meal_container.get_children():
|
||||||
|
child.queue_free()
|
||||||
|
for child in _side_container.get_children():
|
||||||
|
child.queue_free()
|
||||||
|
|
||||||
|
var meal_idx := 0
|
||||||
|
var side_idx := 0
|
||||||
|
for id in ids:
|
||||||
|
var scene := RecipeManager.get_item_scene(id)
|
||||||
|
if not scene:
|
||||||
|
continue
|
||||||
|
var visual := scene.instantiate()
|
||||||
|
var food_node := visual.get_node_or_null("FoodItem") as FoodItem
|
||||||
|
|
||||||
|
var container_root: Node3D
|
||||||
|
var positions: Array[Node3D]
|
||||||
|
var idx: int
|
||||||
|
if food_node and food_node.type == FoodItem.Type.MEAL and meal_idx < meal_positions.size():
|
||||||
|
container_root = _meal_container
|
||||||
|
positions = meal_positions
|
||||||
|
idx = meal_idx
|
||||||
|
meal_idx += 1
|
||||||
|
elif food_node and food_node.type == FoodItem.Type.SIDE and side_idx < side_positions.size():
|
||||||
|
container_root = _side_container
|
||||||
|
positions = side_positions
|
||||||
|
idx = side_idx
|
||||||
|
side_idx += 1
|
||||||
|
else:
|
||||||
|
visual.queue_free()
|
||||||
|
continue
|
||||||
|
|
||||||
|
_make_cosmetic(visual)
|
||||||
|
container_root.add_child(visual)
|
||||||
|
# Must happen after add_child: entering the world is what puts the body
|
||||||
|
# into the physics space, so it can only be taken out again afterwards.
|
||||||
|
_remove_from_physics(visual)
|
||||||
|
visual.position = positions[idx].position
|
||||||
|
visual.rotation = positions[idx].rotation
|
||||||
|
|
||||||
|
|
||||||
|
# Strip interactivity/networking from a display-only copy: it's not spawned
|
||||||
|
# through NetworkManager, so it must never try to sync (its NetPickable child,
|
||||||
|
# if any, would have no corresponding replicated identity on other peers) or
|
||||||
|
# be grabbable/collidable.
|
||||||
|
func _make_cosmetic(visual: Node3D) -> void:
|
||||||
|
var net_pickable := visual.get_node_or_null("NetPickable")
|
||||||
|
if net_pickable:
|
||||||
|
# Detach and free it outright rather than queue_free(): this runs before
|
||||||
|
# `visual` is added to the tree, and a merely-queued node still enters the
|
||||||
|
# tree with its parent and runs _ready() (which starts syncing and logging)
|
||||||
|
# before the queued deletion lands at the end of the frame.
|
||||||
|
visual.remove_child(net_pickable)
|
||||||
|
net_pickable.free()
|
||||||
|
if visual is RigidBody3D:
|
||||||
|
visual.freeze = true
|
||||||
|
# STATIC, not KINEMATIC: a kinematic body is still driven by the physics
|
||||||
|
# engine (see _remove_from_physics), and "static decoration" is what this
|
||||||
|
# actually is.
|
||||||
|
visual.freeze_mode = RigidBody3D.FREEZE_MODE_STATIC
|
||||||
|
visual.collision_layer = 0
|
||||||
|
visual.collision_mask = 0
|
||||||
|
if visual is XRToolsPickable:
|
||||||
|
visual.enabled = false
|
||||||
|
visual.set_process(false)
|
||||||
|
visual.set_physics_process(false)
|
||||||
|
|
||||||
|
|
||||||
|
# Take a display-only copy out of the physics simulation completely.
|
||||||
|
#
|
||||||
|
# Freezing is not enough. Under Jolt (this project's physics engine) a frozen
|
||||||
|
# KINEMATIC RigidBody3D is still simulated: it is driven toward its target
|
||||||
|
# transform by velocity rather than being teleported. Parented to a plate that
|
||||||
|
# gets picked up and carried, it therefore lags behind, keeps its velocity, and
|
||||||
|
# overshoots — so the food visibly slid off the plate and ended up metres away,
|
||||||
|
# differently on each peer since each simulates its own copy. A body with no
|
||||||
|
# space is never touched by the engine, so it simply follows its parent.
|
||||||
|
func _remove_from_physics(visual: Node3D) -> void:
|
||||||
|
if visual is RigidBody3D:
|
||||||
|
PhysicsServer3D.body_set_space((visual as RigidBody3D).get_rid(), RID())
|
||||||
|
var despawning_item = visual.get_node_or_null("DespawningItem")
|
||||||
|
if despawning_item:
|
||||||
|
NetworkManager.despawn_item(despawning_item)
|
||||||
|
|
||||||
|
|
||||||
#plate (Pickalbe)
|
#plate (Pickalbe)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
[ext_resource type="Script" uid="uid://6lyhyial1fh5" path="res://Containers/container.gd" id="1_r4cle"]
|
[ext_resource type="Script" uid="uid://6lyhyial1fh5" path="res://Containers/container.gd" id="1_r4cle"]
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_vlqg6"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_vlqg6"]
|
||||||
radius = 0.2
|
radius = 0.3
|
||||||
|
|
||||||
[node name="Container" type="Node3D" unique_id=377793422 node_paths=PackedStringArray("meal_positions")]
|
[node name="Container" type="Node3D" unique_id=377793422 node_paths=PackedStringArray("meal_positions")]
|
||||||
script = ExtResource("1_r4cle")
|
script = ExtResource("1_r4cle")
|
||||||
|
|||||||
+74
-12
@@ -2,17 +2,13 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bfrlpbsqg5lqr" path="res://addons/godot-xr-tools/objects/pickable.gd" id="1_nq5sa"]
|
[ext_resource type="Script" uid="uid://bfrlpbsqg5lqr" path="res://addons/godot-xr-tools/objects/pickable.gd" id="1_nq5sa"]
|
||||||
[ext_resource type="PackedScene" uid="uid://du31pqeytu8as" path="res://Containers/container.tscn" id="1_s5yhh"]
|
[ext_resource type="PackedScene" uid="uid://du31pqeytu8as" path="res://Containers/container.tscn" id="1_s5yhh"]
|
||||||
|
[ext_resource type="Script" uid="uid://iqjqsk4v6qfh" path="res://Containers/plate_controller.gd" id="1_vjsmi"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_3bkoa"]
|
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_3bkoa"]
|
||||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_6v47p"]
|
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_6v47p"]
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_dhtvl"]
|
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_dhtvl"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_vlcpl"]
|
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_vlcpl"]
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_el51w"]
|
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_el51w"]
|
||||||
[ext_resource type="Script" path="res://Prefabs/net_pickable.gd" id="7_net"]
|
[ext_resource type="Script" uid="uid://bwd0pe2udb5xo" path="res://Net/net_pickable.gd" id="20_netpk"]
|
||||||
|
|
||||||
[sub_resource type="SceneReplicationConfig" id="Repl_item"]
|
|
||||||
properties/0/path = NodePath(".:global_transform")
|
|
||||||
properties/0/spawn = true
|
|
||||||
properties/0/replication_mode = 1
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kek77"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_kek77"]
|
||||||
height = 0.0635376
|
height = 0.0635376
|
||||||
@@ -28,11 +24,35 @@ script = ExtResource("4_dhtvl")
|
|||||||
closed_pose = ExtResource("6_el51w")
|
closed_pose = ExtResource("6_el51w")
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vlqg6"]
|
||||||
|
albedo_color = Color(0.36656043, 0.16690676, 0.12531222, 1)
|
||||||
|
|
||||||
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_np_plate"]
|
||||||
|
properties/0/path = NodePath(".:position")
|
||||||
|
properties/0/spawn = false
|
||||||
|
properties/0/replication_mode = 1
|
||||||
|
properties/1/path = NodePath(".:quaternion")
|
||||||
|
properties/1/spawn = false
|
||||||
|
properties/1/replication_mode = 1
|
||||||
|
properties/2/path = NodePath("NetPickable:net_held_by")
|
||||||
|
properties/2/spawn = true
|
||||||
|
properties/2/replication_mode = 1
|
||||||
|
properties/3/path = NodePath("PlateController:contained_ids")
|
||||||
|
properties/3/spawn = true
|
||||||
|
properties/3/replication_mode = 1
|
||||||
|
properties/4/path = NodePath("PlateController:is_dirty")
|
||||||
|
properties/4/spawn = true
|
||||||
|
properties/4/replication_mode = 1
|
||||||
|
|
||||||
[node name="Plate" type="RigidBody3D" unique_id=190487773]
|
[node name="Plate" type="RigidBody3D" unique_id=190487773]
|
||||||
collision_layer = 4
|
collision_layer = 4
|
||||||
collision_mask = 196615
|
collision_mask = 196615
|
||||||
freeze_mode = 1
|
freeze_mode = 1
|
||||||
script = ExtResource("1_nq5sa")
|
script = ExtResource("1_nq5sa")
|
||||||
|
second_hand_grab = 1
|
||||||
|
|
||||||
|
[node name="PlateController" type="Node" parent="." unique_id=1503264193]
|
||||||
|
script = ExtResource("1_vjsmi")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1365637864]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1365637864]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.007171631, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.007171631, 0)
|
||||||
@@ -67,12 +87,6 @@ hand_pose = SubResource("Resource_2hcq0")
|
|||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.16517048, 0.042291984, -0.08604182)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.16517048, 0.042291984, -0.08604182)
|
||||||
hand_pose = SubResource("Resource_dlngj")
|
hand_pose = SubResource("Resource_dlngj")
|
||||||
|
|
||||||
[node name="NetPickable" type="Node" parent="."]
|
|
||||||
script = ExtResource("7_net")
|
|
||||||
|
|
||||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
||||||
replication_config = SubResource("Repl_item")
|
|
||||||
|
|
||||||
[node name="Container" parent="." unique_id=377793422 node_paths=PackedStringArray("meal_positions", "side_positions") instance=ExtResource("1_s5yhh")]
|
[node name="Container" parent="." unique_id=377793422 node_paths=PackedStringArray("meal_positions", "side_positions") instance=ExtResource("1_s5yhh")]
|
||||||
target_group = "platalbe_item"
|
target_group = "platalbe_item"
|
||||||
meal_positions = [NodePath("MealPositions/Slot1")]
|
meal_positions = [NodePath("MealPositions/Slot1")]
|
||||||
@@ -95,3 +109,51 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.08457637, 0, 0.08950478)
|
|||||||
|
|
||||||
[node name="Slot4" type="Node3D" parent="Container/SidePositions" unique_id=379534402]
|
[node name="Slot4" type="Node3D" parent="Container/SidePositions" unique_id=379534402]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06938871, 0, 0.072598234)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06938871, 0, 0.072598234)
|
||||||
|
|
||||||
|
[node name="Dirty" type="Node3D" parent="." unique_id=319270152]
|
||||||
|
visible = false
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Dirty" unique_id=1075901752]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.074060306, -1.4901161e-08, -0.021821946)
|
||||||
|
radius = 0.02
|
||||||
|
height = 0.005
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Dirty" unique_id=1566886557]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.035480514, 0, 0.09590546)
|
||||||
|
radius = 0.04
|
||||||
|
height = 0.005
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="Dirty" unique_id=1761966340]
|
||||||
|
transform = Transform3D(0.9644101, 0.26441094, 0, -0.26441094, 0.9644101, 0, 0, 0, 1, -0.11377221, 0.005669184, 0.010442272)
|
||||||
|
radius = 0.05
|
||||||
|
height = 0.005
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="Dirty" unique_id=1869071428]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.023516195, 0, -0.088724144)
|
||||||
|
radius = 0.024
|
||||||
|
height = 0.005
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGTorus3D" type="CSGTorus3D" parent="Dirty" unique_id=753275027]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0009794924, -0.005010009, -0.0004204195)
|
||||||
|
inner_radius = 0.10664626
|
||||||
|
outer_radius = 0.14543402
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGPolygon3D" type="CSGPolygon3D" parent="Dirty" unique_id=280929999]
|
||||||
|
transform = Transform3D(0.21189868, 0, 0, 0, -9.2623855e-09, 0.21189868, 0, -0.21189868, -9.2623855e-09, -0.04347625, 0, 0.017095774)
|
||||||
|
polygon = PackedVector2Array(-0.053057775, 0.2586278, 0.09469998, 0.40791017, 0.31746316, 0.26044407, 0.4514293, -0.05809097, 0.105977096, -0.11683442, -4.3913722e-05, 0.02302903)
|
||||||
|
depth = 0.02
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="NetPickable" type="MultiplayerSynchronizer" parent="." unique_id=1770751620]
|
||||||
|
replication_config = SubResource("SceneReplicationConfig_np_plate")
|
||||||
|
script = ExtResource("20_netpk")
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
class_name PlateController
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
@onready var dirty_node: Node3D = $"../Dirty"
|
||||||
|
@onready var container: ItemContainer = $"../Container"
|
||||||
|
|
||||||
|
@export var is_dirty: bool = false
|
||||||
|
|
||||||
|
## Synced plate contents (item ids), replacing reparented child nodes so
|
||||||
|
## contents survive replication (a MultiplayerSpawner-tracked item would
|
||||||
|
## despawn on every client the instant it was reparented out of WorldContent).
|
||||||
|
## Server writes it via ItemContainer; every peer (server included) renders
|
||||||
|
## the cosmetic result via the setter below.
|
||||||
|
@export var contained_ids: Array[String] = []: set = _set_contained_ids
|
||||||
|
|
||||||
|
func get_food_items() -> Array[FoodItem]:
|
||||||
|
return container.contained_items
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
if not dirty_node:
|
||||||
|
SweetLogger.warning("{0} missing dirty_node reference", [name])
|
||||||
|
dirty_node.visible = is_dirty
|
||||||
|
|
||||||
|
|
||||||
|
func _process(_delta: float) -> void:
|
||||||
|
if is_dirty:
|
||||||
|
container.enabled = false
|
||||||
|
dirty_node.visible = true
|
||||||
|
else:
|
||||||
|
container.enabled = true
|
||||||
|
dirty_node.visible = false
|
||||||
|
|
||||||
|
|
||||||
|
func _set_contained_ids(value: Array[String]) -> void:
|
||||||
|
# Only rebuild when the contents actually changed. This property is
|
||||||
|
# replicated in ALWAYS mode, so the synchronizer assigns it every network
|
||||||
|
# tick on every peer that doesn't own the plate — and refresh_visuals()
|
||||||
|
# frees and re-instantiates a scene per item each time. That was thousands
|
||||||
|
# of throwaway nodes per run (and a log line from each one's NetPickable).
|
||||||
|
if contained_ids == value:
|
||||||
|
return
|
||||||
|
contained_ids = value
|
||||||
|
# Deferred: this can be written by the replicated spawn payload before
|
||||||
|
# this node's own @onready vars (container) have resolved.
|
||||||
|
_refresh_visuals.call_deferred()
|
||||||
|
|
||||||
|
|
||||||
|
func _refresh_visuals() -> void:
|
||||||
|
if container:
|
||||||
|
container.refresh_visuals(contained_ids)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://iqjqsk4v6qfh
|
||||||
+15
-40
@@ -1,79 +1,54 @@
|
|||||||
[gd_scene format=3 uid="uid://c0lknik4noobs"]
|
[gd_scene format=3 uid="uid://c0lknik4noobs"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_g1t48"]
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="2_rwqhn"]
|
|
||||||
[ext_resource type="Animation" uid="uid://s1vqcxyqcvea" path="res://addons/godot-xr-tools/hands/animations/right/Grip 5.res" id="3_qaxva"]
|
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_wb51u"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="5_wqyr2"]
|
|
||||||
[ext_resource type="Animation" uid="uid://bediglpx0rj7i" path="res://addons/godot-xr-tools/hands/animations/left/Grip 5.res" id="6_ftab3"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://3lr2dhy62rhk" path="res://Prefabs/combinable_item.tscn" id="7_wb51u"]
|
|
||||||
[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://Prefabs/combine_recipe.gd" id="8_wqyr2"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://Items/hamburger.tscn" id="9_wb51u"]
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_vlqg6"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_vlqg6"]
|
||||||
height = 0.10708985
|
height = 0.10708985
|
||||||
radius = 0.107910156
|
radius = 0.107910156
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_wkb0k"]
|
|
||||||
script = ExtResource("4_wb51u")
|
|
||||||
closed_pose = ExtResource("3_qaxva")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_j68hc"]
|
|
||||||
script = ExtResource("4_wb51u")
|
|
||||||
closed_pose = ExtResource("6_ftab3")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hoqox"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hoqox"]
|
||||||
albedo_color = Color(0.6784191, 0.54546416, 0.016760282, 1)
|
albedo_color = Color(0.6784191, 0.54546416, 0.016760282, 1)
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_hwyyd"]
|
[node name="BurgerBuns" unique_id=1088240294 instance=ExtResource("1_food_item")]
|
||||||
script = ExtResource("8_wqyr2")
|
|
||||||
ingredient_id = &"cooked_burger"
|
|
||||||
result = ExtResource("9_wb51u")
|
|
||||||
metadata/_custom_type_script = "uid://coidnv8b2yvxr"
|
|
||||||
|
|
||||||
[node name="BurgerBuns" unique_id=1088240294 instance=ExtResource("1_g1t48")]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05776599, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05776599, 0)
|
||||||
shape = SubResource("CylinderShape3D_vlqg6")
|
shape = SubResource("CylinderShape3D_vlqg6")
|
||||||
|
|
||||||
[node name="GrabPointHandRight" parent="." index="1" unique_id=141610509 instance=ExtResource("2_rwqhn")]
|
[node name="GrabPointHandLeft" parent="." index="1"]
|
||||||
transform = Transform3D(0.9978254, -0.06591213, 0, 0.06591213, 0.9978254, 0, 0, 0, 1, 0.08952884, 0.07439406, -0.056857675)
|
|
||||||
hand_pose = SubResource("Resource_wkb0k")
|
|
||||||
|
|
||||||
[node name="GrabPointHandLeft" parent="." index="2" unique_id=826213104 instance=ExtResource("5_wqyr2")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.08001605, 0.07612594, -0.05340144)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.08001605, 0.07612594, -0.05340144)
|
||||||
hand_pose = SubResource("Resource_j68hc")
|
|
||||||
|
|
||||||
[node name="CSGCombiner3DBuns" type="CSGCombiner3D" parent="." index="3" unique_id=178629624]
|
[node name="GrabPointHandRight" parent="." index="2"]
|
||||||
|
transform = Transform3D(0.9978254, -0.06591213, 0, 0.06591213, 0.9978254, 0, 0, 0, 1, 0.08952884, 0.07439406, -0.056857675)
|
||||||
|
|
||||||
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "burger_buns"
|
||||||
|
type = 2
|
||||||
|
sell_value = 1
|
||||||
|
|
||||||
|
[node name="CSGCombiner3DBuns" type="CSGCombiner3D" parent="Model" index="0" unique_id=178629624]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.021904588, 0.025076538, -0.0044593215)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.021904588, 0.025076538, -0.0044593215)
|
||||||
autosmooth = true
|
autosmooth = true
|
||||||
smoothing_angle = 138.9
|
smoothing_angle = 138.9
|
||||||
|
|
||||||
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="CSGCombiner3DBuns" index="0" unique_id=110174152]
|
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Model/CSGCombiner3DBuns" index="0" unique_id=110174152]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.004122257, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.004122257, 0)
|
||||||
radius = 0.085
|
radius = 0.085
|
||||||
height = 0.04
|
height = 0.04
|
||||||
sides = 16
|
sides = 16
|
||||||
material = SubResource("StandardMaterial3D_hoqox")
|
material = SubResource("StandardMaterial3D_hoqox")
|
||||||
|
|
||||||
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="CSGCombiner3DBuns" index="1" unique_id=2003491826]
|
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="Model/CSGCombiner3DBuns" index="1" unique_id=2003491826]
|
||||||
transform = Transform3D(0.82770383, -0.5611652, 0, 0.5611652, 0.82770383, 0, 0, 0, 1, -0.048392475, 0.029736161, 0)
|
transform = Transform3D(0.82770383, -0.5611652, 0, 0.5611652, 0.82770383, 0, 0, 0, 1, -0.048392475, 0.029736161, 0)
|
||||||
radius = 0.085
|
radius = 0.085
|
||||||
height = 0.04
|
height = 0.04
|
||||||
sides = 16
|
sides = 16
|
||||||
material = SubResource("StandardMaterial3D_hoqox")
|
material = SubResource("StandardMaterial3D_hoqox")
|
||||||
|
|
||||||
[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="CSGCombiner3DBuns/CSGCylinder3D3" index="0" unique_id=391028348]
|
[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="Model/CSGCombiner3DBuns/CSGCylinder3D3" index="0" unique_id=391028348]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.9604645e-08, 0.040259957, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.9604645e-08, 0.040259957, 0)
|
||||||
radius = 0.085
|
radius = 0.085
|
||||||
height = 0.04
|
height = 0.04
|
||||||
sides = 16
|
sides = 16
|
||||||
cone = true
|
cone = true
|
||||||
material = SubResource("StandardMaterial3D_hoqox")
|
material = SubResource("StandardMaterial3D_hoqox")
|
||||||
|
|
||||||
[node name="CombinableItem" parent="." index="4" unique_id=996936271 instance=ExtResource("7_wb51u")]
|
|
||||||
id = &"burger_buns"
|
|
||||||
recipes = Array[ExtResource("8_wqyr2")]([SubResource("Resource_hwyyd")])
|
|
||||||
|
|||||||
+9
-39
@@ -1,20 +1,8 @@
|
|||||||
[gd_scene format=3 uid="uid://cucc3gaqu2nab"]
|
[gd_scene format=3 uid="uid://cucc3gaqu2nab"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_r73y2"]
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_nfmuy"]
|
|
||||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_bsb6f"]
|
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_mgacb"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_vw7i6"]
|
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_cp3eg"]
|
|
||||||
[ext_resource type="Script" path="res://Prefabs/net_pickable.gd" id="7_net"]
|
|
||||||
|
|
||||||
[sub_resource type="SceneReplicationConfig" id="Repl_item"]
|
|
||||||
properties/0/path = NodePath(".:global_transform")
|
|
||||||
properties/0/spawn = true
|
|
||||||
properties/0/replication_mode = 1
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_gkni8"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_gkni8"]
|
||||||
custom_solver_bias = 0.1
|
|
||||||
height = 0.1
|
height = 0.1
|
||||||
radius = 0.1
|
radius = 0.1
|
||||||
|
|
||||||
@@ -27,34 +15,16 @@ top_radius = 0.1
|
|||||||
bottom_radius = 0.1
|
bottom_radius = 0.1
|
||||||
height = 0.1
|
height = 0.1
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lc22d"]
|
[node name="PickableObject" unique_id=1675596942 instance=ExtResource("1_food_item")]
|
||||||
script = ExtResource("4_mgacb")
|
|
||||||
closed_pose = ExtResource("3_bsb6f")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qyiot"]
|
|
||||||
script = ExtResource("4_mgacb")
|
|
||||||
closed_pose = ExtResource("6_cp3eg")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[node name="PickableObject" unique_id=1675596942 instance=ExtResource("1_r73y2")]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||||
shape = SubResource("CylinderShape3D_gkni8")
|
shape = SubResource("CylinderShape3D_gkni8")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1" unique_id=1223689787]
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "charcoal"
|
||||||
|
type = 2
|
||||||
|
sell_value = 1
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Model" index="0" unique_id=1223689787]
|
||||||
mesh = SubResource("CylinderMesh_vebgy")
|
mesh = SubResource("CylinderMesh_vebgy")
|
||||||
|
|
||||||
[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("2_nfmuy")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844)
|
|
||||||
hand_pose = SubResource("Resource_lc22d")
|
|
||||||
|
|
||||||
[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("5_vw7i6")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182)
|
|
||||||
hand_pose = SubResource("Resource_qyiot")
|
|
||||||
|
|
||||||
[node name="NetPickable" type="Node" parent="." index="4"]
|
|
||||||
script = ExtResource("7_net")
|
|
||||||
|
|
||||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="5"]
|
|
||||||
replication_config = SubResource("Repl_item")
|
|
||||||
|
|||||||
+7
-57
@@ -1,22 +1,6 @@
|
|||||||
[gd_scene format=3 uid="uid://e4i6o5oriecx"]
|
[gd_scene format=3 uid="uid://e4i6o5oriecx"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_dbtw8"]
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="2_pxnkq"]
|
|
||||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="3_iqyul"]
|
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_hc3f7"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_a0a5b"]
|
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_bdp75"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://3lr2dhy62rhk" path="res://Prefabs/combinable_item.tscn" id="7_bdp75"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://Items/Charcoal.tscn" id="8_a0a5b"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://7earnjgdmwgx" path="res://Prefabs/cookable_item.tscn" id="10_65ccv"]
|
|
||||||
[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://Prefabs/combine_recipe.gd" id="11_recipe"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bfj80jh13t6e5" path="res://Prefabs/food_item.tscn" id="11_vjw41"]
|
|
||||||
[ext_resource type="Script" path="res://Prefabs/net_pickable.gd" id="12_net"]
|
|
||||||
|
|
||||||
[sub_resource type="SceneReplicationConfig" id="Repl_item"]
|
|
||||||
properties/0/path = NodePath(".:global_transform")
|
|
||||||
properties/0/spawn = true
|
|
||||||
properties/0/replication_mode = 1
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
||||||
size = Vector3(0.1, 0.1, 0.1)
|
size = Vector3(0.1, 0.1, 0.1)
|
||||||
@@ -28,50 +12,16 @@ albedo_color = Color(0.1764706, 1, 1, 1)
|
|||||||
material = SubResource("StandardMaterial3D_24d3s")
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
size = Vector3(0.1, 0.1, 0.1)
|
size = Vector3(0.1, 0.1, 0.1)
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lc22d"]
|
[node name="PickableObject" unique_id=1675596942 groups=["platalbe_item"] instance=ExtResource("1_food_item")]
|
||||||
script = ExtResource("4_hc3f7")
|
|
||||||
closed_pose = ExtResource("3_iqyul")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qyiot"]
|
|
||||||
script = ExtResource("4_hc3f7")
|
|
||||||
closed_pose = ExtResource("6_bdp75")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_i8ixk"]
|
|
||||||
script = ExtResource("11_recipe")
|
|
||||||
ingredient_id = &"cube"
|
|
||||||
result = ExtResource("8_a0a5b")
|
|
||||||
metadata/_custom_type_script = "uid://coidnv8b2yvxr"
|
|
||||||
|
|
||||||
[node name="PickableObject" unique_id=1675596942 groups=["platalbe_item"] instance=ExtResource("1_dbtw8")]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||||
shape = SubResource("BoxShape3D_m1xbq")
|
shape = SubResource("BoxShape3D_m1xbq")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1" unique_id=1223689787]
|
[node name="FoodItem" parent="." index="3"]
|
||||||
mesh = SubResource("BoxMesh_vlqg6")
|
|
||||||
|
|
||||||
[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("2_pxnkq")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844)
|
|
||||||
hand_pose = SubResource("Resource_lc22d")
|
|
||||||
|
|
||||||
[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("5_a0a5b")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182)
|
|
||||||
hand_pose = SubResource("Resource_qyiot")
|
|
||||||
|
|
||||||
[node name="CombinableItem" parent="." index="4" unique_id=996936271 instance=ExtResource("7_bdp75")]
|
|
||||||
id = &"cube"
|
|
||||||
recipes = Array[ExtResource("11_recipe")]([SubResource("Resource_i8ixk")])
|
|
||||||
|
|
||||||
[node name="CookableItem" parent="." index="5" unique_id=280820828 instance=ExtResource("10_65ccv")]
|
|
||||||
|
|
||||||
[node name="FoodItem" parent="." index="6" unique_id=63948206 instance=ExtResource("11_vjw41")]
|
|
||||||
id = "cube"
|
id = "cube"
|
||||||
type = 1
|
type = 1
|
||||||
|
sell_value = 1
|
||||||
|
|
||||||
[node name="NetPickable" type="Node" parent="." index="7"]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Model" index="0" unique_id=1223689787]
|
||||||
script = ExtResource("12_net")
|
mesh = SubResource("BoxMesh_vlqg6")
|
||||||
|
|
||||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="8"]
|
|
||||||
replication_config = SubResource("Repl_item")
|
|
||||||
|
|||||||
+12
-44
@@ -1,20 +1,7 @@
|
|||||||
[gd_scene format=3 uid="uid://dpot5qie20vf6"]
|
[gd_scene format=3 uid="uid://dpot5qie20vf6"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_fco8w"]
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cexxfyw03hr81" path="res://Textures/1.png" id="2_r8jvx"]
|
[ext_resource type="Texture2D" uid="uid://7jt8macx4f5m" path="res://textures/1.png" id="2_r8jvx"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_qixic"]
|
|
||||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="4_bw8vh"]
|
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="5_w8sii"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="6_mvnl5"]
|
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="7_wqxjj"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://7earnjgdmwgx" path="res://Prefabs/cookable_item.tscn" id="9_hwyyd"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cfc4ho67u4r5e" path="res://Items/cooked_burger.tscn" id="9_r8jvx"]
|
|
||||||
[ext_resource type="Script" path="res://Prefabs/net_pickable.gd" id="12_net"]
|
|
||||||
|
|
||||||
[sub_resource type="SceneReplicationConfig" id="Repl_item"]
|
|
||||||
properties/0/path = NodePath(".:global_transform")
|
|
||||||
properties/0/spawn = true
|
|
||||||
properties/0/replication_mode = 1
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
||||||
height = 0.0338974
|
height = 0.0338974
|
||||||
@@ -23,41 +10,22 @@ radius = 0.08544922
|
|||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bvwq1"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bvwq1"]
|
||||||
albedo_texture = ExtResource("2_r8jvx")
|
albedo_texture = ExtResource("2_r8jvx")
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lc22d"]
|
[node name="raw_burger" unique_id=1675596942 instance=ExtResource("1_food_item")]
|
||||||
script = ExtResource("5_w8sii")
|
|
||||||
closed_pose = ExtResource("4_bw8vh")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qyiot"]
|
|
||||||
script = ExtResource("5_w8sii")
|
|
||||||
closed_pose = ExtResource("7_wqxjj")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[node name="burger" unique_id=1675596942 instance=ExtResource("1_fco8w")]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00077831745, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00077831745, 0)
|
||||||
shape = SubResource("CylinderShape3D_fco8w")
|
shape = SubResource("CylinderShape3D_fco8w")
|
||||||
|
|
||||||
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="." index="1" unique_id=59319982]
|
[node name="FoodItem" parent="." index="3" unique_id=63948206]
|
||||||
|
id = "raw_burger"
|
||||||
|
type = 2
|
||||||
|
sell_value = 1
|
||||||
|
|
||||||
|
[node name="CombinableItem" parent="." index="8"]
|
||||||
|
enabled = false
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Model" parent_id_path=PackedInt32Array(1015960306) index="0" unique_id=59319982]
|
||||||
radius = 0.08300781
|
radius = 0.08300781
|
||||||
height = 0.03
|
height = 0.03
|
||||||
sides = 16
|
sides = 16
|
||||||
material = SubResource("StandardMaterial3D_bvwq1")
|
material = SubResource("StandardMaterial3D_bvwq1")
|
||||||
|
|
||||||
[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("3_qixic")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844)
|
|
||||||
hand_pose = SubResource("Resource_lc22d")
|
|
||||||
|
|
||||||
[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("6_mvnl5")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182)
|
|
||||||
hand_pose = SubResource("Resource_qyiot")
|
|
||||||
|
|
||||||
[node name="CookableItem" parent="." index="4" unique_id=280820828 instance=ExtResource("9_hwyyd")]
|
|
||||||
turns_into = ExtResource("9_r8jvx")
|
|
||||||
|
|
||||||
[node name="NetPickable" type="Node" parent="." index="5"]
|
|
||||||
script = ExtResource("12_net")
|
|
||||||
|
|
||||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="." index="6"]
|
|
||||||
replication_config = SubResource("Repl_item")
|
|
||||||
|
|||||||
@@ -0,0 +1,214 @@
|
|||||||
|
[gd_scene format=3 uid="uid://duwrbvwcqcuk3"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
||||||
|
size = Vector3(0.1, 0.1, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vlqg6"]
|
||||||
|
albedo_color = Color(1, 0.26, 0.26, 1)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.66, 0.58300006, 0.19800001, 1)
|
||||||
|
|
||||||
|
[node name="Chips" unique_id=1675596942 groups=["platalbe_item"] instance=ExtResource("1_food_item")]
|
||||||
|
collision_layer = 4
|
||||||
|
collision_mask = 196615
|
||||||
|
freeze_mode = 1
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||||
|
shape = SubResource("BoxShape3D_m1xbq")
|
||||||
|
|
||||||
|
[node name="GrabPointHandLeft" parent="." index="1"]
|
||||||
|
transform = Transform3D(0.99971306, 0.023955148, 0, -0.023955148, 0.99971306, 0, 0, 0, 1, -0.042430807, 0.04601878, -0.066400535)
|
||||||
|
|
||||||
|
[node name="GrabPointHandRight" parent="." index="2"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.039321173, 0.042291984, -0.06561862)
|
||||||
|
|
||||||
|
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="Model" unique_id=965503334]
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Model/CSGCombiner3D" unique_id=816650852]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.7, 0, -0.008749997, 0)
|
||||||
|
radius = 0.055
|
||||||
|
height = 0.10250001
|
||||||
|
sides = 32
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" unique_id=387203621]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00010003522, 0.004754007, -0.0005688625)
|
||||||
|
operation = 2
|
||||||
|
radius = 0.05
|
||||||
|
height = 0.0934961
|
||||||
|
sides = 32
|
||||||
|
|
||||||
|
[node name="CSGBox3D" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=93328108]
|
||||||
|
transform = Transform3D(0.7620723, -0.15403531, 0.62890285, 0.14065021, 0.98747945, 0.07142768, -0.632031, 0.034022264, 0.77419585, 0, 0.023602298, 0)
|
||||||
|
size = Vector3(0.01, 0.1472046, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D2" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=916963062]
|
||||||
|
transform = Transform3D(0.8856182, 0, -0.46441403, 0, 1, 0, 0.46441403, 0, 0.8856182, -0.025303185, 0.017004399, -0.011429907)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.012324219)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D3" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=2028227382]
|
||||||
|
transform = Transform3D(0.9982952, 0.058366816, 0, -0.058366816, 0.9982952, 0, 0, 0, 1, 0.01182463, 0.014508067, -0.020026028)
|
||||||
|
size = Vector3(0.005488281, 0.12901612, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D4" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=281966004]
|
||||||
|
transform = Transform3D(0.7529522, 0.17319141, -0.63487613, -0.17018878, 0.98317415, 0.06636462, 0.6356876, 0.058079403, 0.7697584, 0.030878175, 0.017004376, 0.0073254704)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D5" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1396476812]
|
||||||
|
transform = Transform3D(0.9059609, 0.09732082, -0.4120236, 0.057229556, 0.93613446, 0.3469537, 0.41947538, -0.33790648, 0.8425318, 0.022142533, 0.013039222, 0.0003975192)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D6" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=799991689]
|
||||||
|
transform = Transform3D(0.84679973, -0.153204, -0.5093709, 0.13128299, 0.9881946, -0.07896996, 0.5154561, 0, 0.856916, -0.035753187, 0.02232056, 0.006355174)
|
||||||
|
size = Vector3(0.010739746, 0.14464112, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D7" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1801209773]
|
||||||
|
transform = Transform3D(0.97630554, 0.034820024, 0.21357699, 0, 0.98696935, -0.16090819, -0.21639681, 0.15709558, 0.96358365, 0.013860466, 0.019146731, 0.016792327)
|
||||||
|
size = Vector3(0.01, 0.13829346, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D8" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1457970557]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.014735691, 0.014813228, 0.009678945)
|
||||||
|
size = Vector3(0.01, 0.12962647, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D9" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1215031746]
|
||||||
|
transform = Transform3D(0.98743933, -0.15799865, 0, 0.15799865, 0.98743933, 0, 0, 0, 1, -0.00090237334, 0.017004391, -0.023620732)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D10" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=532075410]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.021327257, 0.013287356, 0.022823062)
|
||||||
|
size = Vector3(0.010739746, 0.12657471, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D11" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=2073146495]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.03040018, 0.009017946, 0.020780522)
|
||||||
|
size = Vector3(0.01, 0.11803589, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D12" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=75858017]
|
||||||
|
transform = Transform3D(0.97359693, 0, 0.22827391, 0.051342297, 0.9743782, -0.21897686, -0.22242515, 0.22491528, 0.9486517, -0.0036671162, 0.017004391, 0.02201752)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D13" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=632405164]
|
||||||
|
transform = Transform3D(0.77419585, 0, 0.6329461, 0, 0.52134585, 0, -0.6329461, 0, 0.77419585, 0, -0.007927237, 0)
|
||||||
|
size = Vector3(0.01, 0.1472046, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D14" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1656744815]
|
||||||
|
transform = Transform3D(-0.8283986, -0.2356963, 0.46195662, -0.27667236, 0.7057101, 0.1542864, -0.48704025, 0, -0.8733795, 0.021192847, -0.004947574, 0.01600693)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D15" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1543269420]
|
||||||
|
transform = Transform3D(-0.91507524, 0.2995426, 0.023545321, 0.40246198, 0.68106806, -0.010355539, -0.025721962, -5.579416e-10, -0.99966913, -0.01809039, 0.0024462799, 0.0042534657)
|
||||||
|
size = Vector3(0.005488281, 0.15618286, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D16" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=254315930]
|
||||||
|
transform = Transform3D(-0.92201805, 0, 0.38714674, 0, 0.7440292, 0, -0.38714674, 0, -0.92201805, -0.03251951, -0.0049475897, 0.0013081154)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D17" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1486469355]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0, 0.7440292, 0, -0.025721963, 0, -0.99966913, -0.023322525, -0.0049475795, -0.00594615)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D18" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=630552823]
|
||||||
|
transform = Transform3D(-0.83532625, 0.10253985, 0.5321998, 0.116231225, 0.7369294, -0.07405278, -0.5373271, 0, -0.84337395, 0.032662854, -0.0009921952, -0.0025184364)
|
||||||
|
size = Vector3(0.010739746, 0.14464112, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D19" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=239318459]
|
||||||
|
transform = Transform3D(-0.9815485, 0, -0.19121267, 0, 0.74402916, 0, 0.19121267, 0, -0.9815485, -0.016665924, -0.0033536162, -0.014228297)
|
||||||
|
size = Vector3(0.01, 0.13829346, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D20" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=928371372]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0, 0.7440292, 0, -0.025721963, 0, -0.99966913, 0.011737803, -0.00657787, -0.006381719)
|
||||||
|
size = Vector3(0.01, 0.12962647, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D21" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=226684342]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0, 0.7440292, 0, -0.025721963, 0, -0.99966913, 0.0084346505, -0.0049475795, 0.026858818)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D22" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1692336606]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0, 0.7440292, 0, -0.025721963, 0, -0.99966913, 0.01866528, -0.0077131614, -0.019351937)
|
||||||
|
size = Vector3(0.010739746, 0.12657471, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D23" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1460106852]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0, 0.7440292, 0, -0.025721963, 0, -0.99966913, -0.03309758, -0.010889728, -0.018640606)
|
||||||
|
size = Vector3(0.01, 0.11803589, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D24" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=814233916]
|
||||||
|
transform = Transform3D(-0.9791465, 0, -0.20315555, 0, 0.74402934, 0, 0.20315555, 0, -0.9791465, 0.0009902613, -0.0049475795, -0.019000916)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D25" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1206566850]
|
||||||
|
transform = Transform3D(0.9997566, 0, -0.022063702, 0, 0.7440293, 0, 0.022063702, 0, 0.9997566, 0.034941338, -0.0049475897, -0.015364999)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D26" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=782469494]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265807, 0, 0.7440292, 0, -0.34265807, 0, 0.9394602, 0.029045265, -0.0049475795, -0.0052434783)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D27" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=615899037]
|
||||||
|
transform = Transform3D(0.9816637, 0, -0.19062132, 0, 0.74402916, 0, 0.19062132, 0, 0.9816637, -0.024296898, -0.0009921952, 0.012097965)
|
||||||
|
size = Vector3(0.010739746, 0.14464112, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D28" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1440223352]
|
||||||
|
transform = Transform3D(0.84304994, 0, 0.537835, 0, 0.74402916, 0, -0.537835, 0, 0.84304994, 0.025889535, -0.0033536162, 0.0049027367)
|
||||||
|
size = Vector3(0.01, 0.13829346, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D29" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1162134484]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265807, 0, 0.7440292, 0, -0.34265807, 0, 0.9394602, -0.0034128763, -0.00657787, 0.0080187)
|
||||||
|
size = Vector3(0.01, 0.12962647, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D30" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=939036040]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265807, 0, 0.7440292, 0, -0.34265807, 0, 0.9394602, -0.0018274263, -0.0049475795, -0.028005121)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D31" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1952616270]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265807, 0, 0.7440292, 0, -0.34265807, 0, 0.9394602, -0.0051014535, -0.0077131614, 0.022625728)
|
||||||
|
size = Vector3(0.010739746, 0.12657471, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=1868626634]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265807, 0, 0.7440292, 0, -0.34265807, 0, 0.9394602, 0.042794522, -0.010889728, 0.0029820204)
|
||||||
|
size = Vector3(0.01, 0.11803589, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D33" type="CSGBox3D" parent="Model/CSGCombiner3D" unique_id=529418367]
|
||||||
|
transform = Transform3D(0.8364357, 0, 0.54806507, 0, 0.74402934, 0, -0.54806507, 0, 0.8364357, 0.011213522, -0.0049475795, 0.015817564)
|
||||||
|
size = Vector3(0.01, 0.1340088, 0.01)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
|
||||||
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "chips"
|
||||||
|
type = 1
|
||||||
|
sell_value = 2
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
[gd_scene format=3 uid="uid://bpvp20hiagxxb"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_of0s8"]
|
||||||
|
size = Vector3(0.10456543, 0.1, 0.035327148)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_of0s8"]
|
||||||
|
albedo_color = Color(0.7546, 0.77, 0.30799997, 1)
|
||||||
|
|
||||||
|
[node name="ChoppedPotato" unique_id=1675596942 instance=ExtResource("1_food_item")]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0.0022827126, 0.010339355, -0.0028051804)
|
||||||
|
shape = SubResource("BoxShape3D_of0s8")
|
||||||
|
|
||||||
|
[node name="GrabPointHandLeft" parent="." index="1"]
|
||||||
|
transform = Transform3D(0.4877618, 0.85191125, -0.19062005, -0.8708042, 0.49020204, -0.0374375, 0.06154889, 0.1842533, 0.98094976, 0.028727118, 0.03771837, -0.06794037)
|
||||||
|
|
||||||
|
[node name="GrabPointHandRight" parent="." index="2"]
|
||||||
|
transform = Transform3D(0.35819444, -0.933647, 0, 0.92118585, 0.35341373, -0.16283518, 0.1520306, 0.05832667, 0.98665327, -0.02374028, 0.05081141, -0.06576714)
|
||||||
|
|
||||||
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "chopped_potato"
|
||||||
|
type = 2
|
||||||
|
sell_value = 0
|
||||||
|
|
||||||
|
[node name="CombinableItem" parent="." index="8"]
|
||||||
|
enabled = false
|
||||||
|
|
||||||
|
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="Model" index="0" unique_id=1632388374]
|
||||||
|
|
||||||
|
[node name="CSGBox3D3" type="CSGBox3D" parent="Model/CSGCombiner3D" index="0" unique_id=333574743]
|
||||||
|
transform = Transform3D(0.9982952, 0.058366816, 0, 2.5512945e-09, -4.363687e-08, -1, -0.058366816, 0.9982952, -4.371139e-08, 0.017540446, 0.012680878, -0.007841777)
|
||||||
|
size = Vector3(0.012, 0.0737854, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D10" type="CSGBox3D" parent="Model/CSGCombiner3D" index="1" unique_id=1055117011]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, -0.043418147, 0.013074134, 0.00018549338)
|
||||||
|
size = Vector3(0.012, 0.048638918, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D11" type="CSGBox3D" parent="Model/CSGCombiner3D" index="2" unique_id=12997588]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0.0347388, 0, -0.0042848364)
|
||||||
|
size = Vector3(0.012, 0.11803589, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D16" type="CSGBox3D" parent="Model/CSGCombiner3D" index="3" unique_id=520084094]
|
||||||
|
transform = Transform3D(-0.9220182, 0, 0.38714683, 0.38714683, -3.2522554e-08, 0.9220182, 1.6922723e-08, 0.7440293, 4.030269e-08, -0.03251951, 0, -0.0066871783)
|
||||||
|
size = Vector3(0.012, 0.1340088, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D18" type="CSGBox3D" parent="Model/CSGCombiner3D" index="4" unique_id=1713154750]
|
||||||
|
transform = Transform3D(-0.83532625, 0.10253985, 0.5321998, 0.5373272, -3.183022e-08, 0.8433741, 0.11623128, 0.7369294, -0.07405276, 0.012299374, 0, -0.0027317838)
|
||||||
|
size = Vector3(0.012, 0.14464112, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D19" type="CSGBox3D" parent="Model/CSGCombiner3D" index="5" unique_id=1856457460]
|
||||||
|
transform = Transform3D(-0.9815485, 0, -0.19121267, -0.19121267, -3.2522546e-08, 0.9815485, -8.358171e-09, 0.74402916, 4.2904848e-08, 0.0047408585, 0.015360672, -0.0050932043)
|
||||||
|
size = Vector3(0.012, 0.13829346, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D21" type="CSGBox3D" parent="Model/CSGCombiner3D" index="6" unique_id=1085994272]
|
||||||
|
transform = Transform3D(-0.99966913, 0, 0.025721963, 0.025721963, -3.252255e-08, 0.99966913, 1.1243427e-09, 0.7440292, 4.3696925e-08, 0.0084346505, -1.2525464e-10, -0.0038216766)
|
||||||
|
size = Vector3(0.012, 0.14171143, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D24" type="CSGBox3D" parent="Model/CSGCombiner3D" index="7" unique_id=799603447]
|
||||||
|
transform = Transform3D(-0.95734614, -0.16150172, -0.19071358, -0.19483496, -0.0018292161, 0.980833, -0.21337205, 0.7262875, -0.039937917, -0.015636567, 0.016941056, -0.0038651554)
|
||||||
|
size = Vector3(0.012, 0.1340088, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D26" type="CSGBox3D" parent="Model/CSGCombiner3D" index="8" unique_id=129671681]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265804, 0.34265804, -3.252255e-08, -0.9394602, 1.497806e-08, 0.7440292, -4.106511e-08, 0.033136886, 0.017579898, -0.0066871676)
|
||||||
|
size = Vector3(0.012, 0.1340088, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D27" type="CSGBox3D" parent="Model/CSGCombiner3D" index="9" unique_id=17129382]
|
||||||
|
transform = Transform3D(0.9816637, 0, -0.19062133, -0.19062132, -3.2522546e-08, -0.98166364, -8.332322e-09, 0.74402916, -4.2909882e-08, -0.019075055, -4.3606386e-05, -0.0027317842)
|
||||||
|
size = Vector3(0.012, 0.14464112, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D28" type="CSGBox3D" parent="Model/CSGCombiner3D" index="10" unique_id=1557637409]
|
||||||
|
transform = Transform3D(0.84304994, 0, 0.537835, 0.537835, -3.2522546e-08, -0.84304994, 2.3509514e-08, 0.74402916, -3.6850885e-08, 0.047794472, 0.016187795, -0.0034102863)
|
||||||
|
size = Vector3(0.012, 0.11199341, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D30" type="CSGBox3D" parent="Model/CSGCombiner3D" index="11" unique_id=1187654453]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265804, 0.34265804, -3.252255e-08, -0.9394602, 1.497806e-08, 0.7440292, -4.106511e-08, -0.005314119, 0, 0.009267362)
|
||||||
|
size = Vector3(0.012, 0.1340088, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Model/CSGCombiner3D" index="12" unique_id=733217969]
|
||||||
|
transform = Transform3D(0.9394602, 0, 0.34265804, 0.34265804, -3.252255e-08, -0.9394602, 1.497806e-08, 0.7440292, -4.106511e-08, 0.050648127, 9.4238846e-11, -0.0005330723)
|
||||||
|
size = Vector3(0.012, 0.1122406, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
|
|
||||||
|
[node name="CSGBox3D29" type="CSGBox3D" parent="Model/CSGCombiner3D" index="13" unique_id=1376406225]
|
||||||
|
transform = Transform3D(0.9816637, 0, -0.19062133, -0.19062132, -3.2522546e-08, -0.98166364, -8.332322e-09, 0.74402916, -4.2909882e-08, -0.04667829, -4.360572e-05, -0.0065923333)
|
||||||
|
size = Vector3(0.012, 0.10369263, 0.012)
|
||||||
|
material = SubResource("StandardMaterial3D_of0s8")
|
||||||
@@ -1,15 +1,6 @@
|
|||||||
[gd_scene format=3 uid="uid://cfc4ho67u4r5e"]
|
[gd_scene format=3 uid="uid://cfc4ho67u4r5e"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_ut7mg"]
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_pkevi"]
|
|
||||||
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="4_dq7qw"]
|
|
||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="5_ychvb"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="6_etdv2"]
|
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="7_rl64h"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://3lr2dhy62rhk" path="res://Prefabs/combinable_item.tscn" id="10_ut7mg"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://7earnjgdmwgx" path="res://Prefabs/cookable_item.tscn" id="11_5ch2b"]
|
|
||||||
[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://Prefabs/combine_recipe.gd" id="11_rjayc"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://Items/hamburger.tscn" id="11_ut7mg"]
|
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
||||||
height = 0.04777527
|
height = 0.04777527
|
||||||
@@ -18,43 +9,19 @@ radius = 0.08300781
|
|||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6l01i"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6l01i"]
|
||||||
albedo_color = Color(0.29, 0.101500005, 0, 1)
|
albedo_color = Color(0.29, 0.101500005, 0, 1)
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lc22d"]
|
[node name="CookedBurger" unique_id=1675596942 instance=ExtResource("1_food_item")]
|
||||||
script = ExtResource("5_ychvb")
|
|
||||||
closed_pose = ExtResource("4_dq7qw")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qyiot"]
|
|
||||||
script = ExtResource("5_ychvb")
|
|
||||||
closed_pose = ExtResource("7_rl64h")
|
|
||||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_wi1yl"]
|
|
||||||
script = ExtResource("11_rjayc")
|
|
||||||
ingredient_id = &"burger_buns"
|
|
||||||
result = ExtResource("11_ut7mg")
|
|
||||||
metadata/_custom_type_script = "uid://coidnv8b2yvxr"
|
|
||||||
|
|
||||||
[node name="CookedBurger" unique_id=1675596942 instance=ExtResource("1_ut7mg")]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0072289705, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0072289705, 0)
|
||||||
shape = SubResource("CylinderShape3D_fco8w")
|
shape = SubResource("CylinderShape3D_fco8w")
|
||||||
|
|
||||||
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="." index="1" unique_id=59319982]
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "cooked_burger"
|
||||||
|
type = 2
|
||||||
|
sell_value = 1
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Model" index="0" unique_id=59319982]
|
||||||
radius = 0.08300781
|
radius = 0.08300781
|
||||||
height = 0.03
|
height = 0.03
|
||||||
sides = 16
|
sides = 16
|
||||||
material = SubResource("StandardMaterial3D_6l01i")
|
material = SubResource("StandardMaterial3D_6l01i")
|
||||||
|
|
||||||
[node name="GrabPointHandLeft" parent="." index="2" unique_id=1571481674 instance=ExtResource("3_pkevi")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.067650706, 0.04601878, -0.08606844)
|
|
||||||
hand_pose = SubResource("Resource_lc22d")
|
|
||||||
|
|
||||||
[node name="GrabPointHandRight" parent="." index="3" unique_id=514404634 instance=ExtResource("6_etdv2")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06531982, 0.042291984, -0.08604182)
|
|
||||||
hand_pose = SubResource("Resource_qyiot")
|
|
||||||
|
|
||||||
[node name="CombinableItem" parent="." index="4" unique_id=434304805 instance=ExtResource("10_ut7mg")]
|
|
||||||
recipes = Array[ExtResource("11_rjayc")]([SubResource("Resource_wi1yl")])
|
|
||||||
|
|
||||||
[node name="CookableItem" parent="." index="5" unique_id=280820828 instance=ExtResource("11_5ch2b")]
|
|
||||||
|
|||||||
+24
-2
@@ -6,7 +6,9 @@
|
|||||||
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_cljtj"]
|
[ext_resource type="Script" uid="uid://dvobm6vcfnqe8" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="4_cljtj"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_dunns"]
|
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_dunns"]
|
||||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_fh0f6"]
|
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_fh0f6"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bfj80jh13t6e5" path="res://Prefabs/food_item.tscn" id="7_yy3y8"]
|
[ext_resource type="PackedScene" uid="uid://bfj80jh13t6e5" path="res://prefabs/food_item.tscn" id="7_yy3y8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b5ukku8i0hilb" path="res://prefabs/despawning_item.tscn" id="9_ej8jm"]
|
||||||
|
[ext_resource type="Script" uid="uid://bwd0pe2udb5xo" path="res://Net/net_pickable.gd" id="20_netpk"]
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
||||||
height = 0.10392761
|
height = 0.10392761
|
||||||
@@ -28,8 +30,20 @@ albedo_color = Color(0.6784191, 0.54546416, 0.016760282, 1)
|
|||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6l01i"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6l01i"]
|
||||||
albedo_color = Color(0.29, 0.101500005, 0, 1)
|
albedo_color = Color(0.29, 0.101500005, 0, 1)
|
||||||
|
|
||||||
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_np_hamburger"]
|
||||||
|
properties/0/path = NodePath(".:position")
|
||||||
|
properties/0/spawn = false
|
||||||
|
properties/0/replication_mode = 1
|
||||||
|
properties/1/path = NodePath(".:quaternion")
|
||||||
|
properties/1/spawn = false
|
||||||
|
properties/1/replication_mode = 1
|
||||||
|
properties/2/path = NodePath("NetPickable:net_held_by")
|
||||||
|
properties/2/spawn = true
|
||||||
|
properties/2/replication_mode = 1
|
||||||
|
|
||||||
[node name="Hamburger" unique_id=1675596942 groups=["platalbe_item"] instance=ExtResource("1_3gf3l")]
|
[node name="Hamburger" unique_id=1675596942 groups=["platalbe_item"] instance=ExtResource("1_3gf3l")]
|
||||||
gravity_scale = 0.4
|
gravity_scale = 0.04
|
||||||
|
second_hand_grab = 1
|
||||||
|
|
||||||
[node name="CollisionShape3D" parent="." index="0"]
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.02, 0.02, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.02, 0.02, 0)
|
||||||
@@ -78,4 +92,12 @@ sides = 16
|
|||||||
material = SubResource("StandardMaterial3D_6l01i")
|
material = SubResource("StandardMaterial3D_6l01i")
|
||||||
|
|
||||||
[node name="FoodItem" parent="." index="5" unique_id=63948206 instance=ExtResource("7_yy3y8")]
|
[node name="FoodItem" parent="." index="5" unique_id=63948206 instance=ExtResource("7_yy3y8")]
|
||||||
|
id = "hamburger"
|
||||||
type = 0
|
type = 0
|
||||||
|
sell_value = 4
|
||||||
|
|
||||||
|
[node name="NetPickable" type="MultiplayerSynchronizer" parent="." index="6" unique_id=56164120]
|
||||||
|
replication_config = SubResource("SceneReplicationConfig_np_hamburger")
|
||||||
|
script = ExtResource("20_netpk")
|
||||||
|
|
||||||
|
[node name="DespawningItem" parent="." index="7" unique_id=303090111 instance=ExtResource("9_ej8jm")]
|
||||||
|
|||||||
@@ -0,0 +1,130 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dgk88esxip5xi"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
||||||
|
height = 0.29805934
|
||||||
|
radius = 0.025390625
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id="Gradient_s6exe"]
|
||||||
|
interpolation_mode = 2
|
||||||
|
offsets = PackedFloat32Array(0.0088495575, 0.76106197)
|
||||||
|
colors = PackedColorArray(0.6, 0.6, 0.6, 1, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_22jur"]
|
||||||
|
|
||||||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_3lf03"]
|
||||||
|
noise = SubResource("FastNoiseLite_22jur")
|
||||||
|
color_ramp = SubResource("Gradient_s6exe")
|
||||||
|
normalize = false
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.54, 0.39384004, 0.22680002, 1)
|
||||||
|
albedo_texture = SubResource("NoiseTexture2D_3lf03")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vlqg6"]
|
||||||
|
albedo_color = Color(0.6, 0.6, 0.6, 1)
|
||||||
|
metallic = 1.0
|
||||||
|
metallic_specular = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(0.01, 0.062841795, 0.18769531)
|
||||||
|
|
||||||
|
[node name="Knife" unique_id=1675596942 groups=["chopping_tool"] instance=ExtResource("1_food_item")]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 2.8164342e-09, -0.0644325)
|
||||||
|
shape = SubResource("CylinderShape3D_fco8w")
|
||||||
|
|
||||||
|
[node name="GrabPointHandLeft" parent="." index="1" unique_id=1571481674]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.80581045, 0.5921736, 0, -0.5921736, 0.80581045, -0.0055686757, -0.027660534, -0.06972287)
|
||||||
|
|
||||||
|
[node name="GrabPointHandRight" parent="." index="2" unique_id=514404634]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.7906625, 0.6122523, 0, -0.6122523, 0.7906625, -0.00973678, -0.036154382, -0.07772979)
|
||||||
|
|
||||||
|
[node name="DespawningItem" parent="." index="5" unique_id=303090111]
|
||||||
|
enabled = false
|
||||||
|
|
||||||
|
[node name="CombinableItem" parent="." index="6" unique_id=996936271]
|
||||||
|
enabled = false
|
||||||
|
|
||||||
|
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="Model" parent_id_path=PackedInt32Array(1015960306) index="0" unique_id=1632388374]
|
||||||
|
transform = Transform3D(0.45, 0, 0, 0, 0.45, 0, 0, 0, 0.45, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Model/CSGCombiner3D" index="0" unique_id=73312047]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 1.9443882e-09, 0.044482417)
|
||||||
|
radius = 0.05
|
||||||
|
height = 0.28896484
|
||||||
|
sides = 16
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D2" type="CSGBox3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="0" unique_id=1092536616]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.3711392e-08, -1, 0, 1, -4.3711392e-08, -0.06291181, -0.003074348, 0.003173826)
|
||||||
|
operation = 2
|
||||||
|
size = Vector3(0.06698901, 0.08496094, 0.3070221)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3D3" type="CSGBox3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="1" unique_id=611507380]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.3711392e-08, -1, 0, 1, -4.3711392e-08, 0.057669085, -0.00014465302, 0.003173826)
|
||||||
|
operation = 2
|
||||||
|
size = Vector3(0.051974364, 0.08496094, 0.30897522)
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="2" unique_id=1981876218]
|
||||||
|
transform = Transform3D(-4.3711392e-08, 1, 0, 4.3711392e-08, 1.9106857e-15, -1, -1, -4.3711392e-08, -4.3711392e-08, 0.0014698628, 0.062123798, 0.00029686643)
|
||||||
|
radius = 0.016
|
||||||
|
height = 0.06318359
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="3" unique_id=1905314362]
|
||||||
|
transform = Transform3D(-4.3711392e-08, 1, 0, 4.3711392e-08, 1.9106857e-15, -1, -1, -4.3711392e-08, -4.3711392e-08, 0.0014698628, -0.049634382, 0.00029686154)
|
||||||
|
radius = 0.016
|
||||||
|
height = 0.06318359
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="4" unique_id=905243368]
|
||||||
|
transform = Transform3D(-6.070399e-08, 1, 0, 1.3887457, 4.3711392e-08, 8.7422784e-08, 1.21408e-07, 3.8213714e-15, -1, 0.0017506231, -0.10254226, -0.07109782)
|
||||||
|
operation = 2
|
||||||
|
radius = 0.032226563
|
||||||
|
height = 0.07854004
|
||||||
|
sides = 32
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="5" unique_id=1873534320]
|
||||||
|
transform = Transform3D(-1.0240791e-07, 1, 0, 2.34282, 4.3711392e-08, 8.7422784e-08, 2.0481582e-07, 3.8213714e-15, -1, 0.0017506231, 0.089636564, -0.07143875)
|
||||||
|
operation = 2
|
||||||
|
radius = 0.032226563
|
||||||
|
height = 0.07854004
|
||||||
|
sides = 32
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Model/CSGCombiner3D/CSGCylinder3D" index="6" unique_id=471254428]
|
||||||
|
transform = Transform3D(-1.0240791e-07, 1, 0, 2.34282, 4.3711392e-08, 8.7422784e-08, 2.0481582e-07, 3.8213714e-15, -1, 0.0017506231, -0.079547666, -0.07143876)
|
||||||
|
operation = 2
|
||||||
|
radius = 0.032226563
|
||||||
|
height = 0.07854004
|
||||||
|
sides = 32
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CSGBox3DBlade" type="CSGBox3D" parent="Model/CSGCombiner3D" index="1" unique_id=94519802]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.005445559, -0.18191797)
|
||||||
|
size = Vector3(0.007, 0.08954346, 0.6364492)
|
||||||
|
material = SubResource("StandardMaterial3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="CSGTorus3D" type="CSGTorus3D" parent="Model/CSGCombiner3D/CSGBox3DBlade" index="0" unique_id=555698965]
|
||||||
|
transform = Transform3D(-4.3711392e-08, 1, 0, -1, -4.3711392e-08, 0, 0, 0, 0.90598416, 0, 0.25891897, -0.12508947)
|
||||||
|
operation = 2
|
||||||
|
outer_radius = 0.3
|
||||||
|
sides = 64
|
||||||
|
|
||||||
|
[node name="CSGBox3D5" type="CSGBox3D" parent="Model/CSGCombiner3D/CSGBox3DBlade/CSGTorus3D" index="0" unique_id=720590378]
|
||||||
|
transform = Transform3D(-4.3710607e-08, -0.9973613, 0.0724587, 0.99998987, -4.3595673e-08, 3.1672265e-09, 0, 0.034851935, 0.47972566, 0.25730363, -0.003919763, 0.23939973)
|
||||||
|
operation = 2
|
||||||
|
size = Vector3(0.40247935, 0.2781372, 0.97288764)
|
||||||
|
|
||||||
|
[node name="Area3D" type="Area3D" parent="." index="9" unique_id=1995926098 groups=["chopping_tool"]]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.05011083)
|
||||||
|
collision_layer = 513
|
||||||
|
collision_mask = 0
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0" unique_id=1593629505]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.018579103, -0.1395939)
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
[gd_scene format=3 uid="uid://drwuhqb3pjtiy"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://d8jo0402pgl6" path="res://abstract/food_item.tscn" id="1_food_item"]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fco8w"]
|
||||||
|
height = 0.16196387
|
||||||
|
radius = 0.07080078
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_d4wpw"]
|
||||||
|
albedo_color = Color(0.48, 0.34336, 0.1872, 1)
|
||||||
|
|
||||||
|
[node name="Potato" unique_id=1675596942 instance=ExtResource("1_food_item")]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="." index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 1.2261836e-10, -0.0028051808)
|
||||||
|
shape = SubResource("CylinderShape3D_fco8w")
|
||||||
|
|
||||||
|
[node name="GrabPointHandLeft" parent="." index="1"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -0.5343598, -0.84525716, 0, 0.84525716, -0.5343598, -0.03287975, 0.03671424, 0.10207943)
|
||||||
|
|
||||||
|
[node name="GrabPointHandRight" parent="." index="2"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, -0.7457213, -0.66625804, 0, 0.66625804, -0.7457213, 0.03408891, 0.014529038, 0.10517749)
|
||||||
|
|
||||||
|
[node name="FoodItem" parent="." index="3"]
|
||||||
|
id = "potato"
|
||||||
|
type = 2
|
||||||
|
sell_value = 0
|
||||||
|
|
||||||
|
[node name="CombinableItem" parent="." index="8"]
|
||||||
|
enabled = false
|
||||||
|
|
||||||
|
[node name="CSGCombiner3DPotato" type="CSGCombiner3D" parent="Model" index="0" unique_id=1632388374]
|
||||||
|
|
||||||
|
[node name="CSGSphere3D" type="CSGSphere3D" parent="Model/CSGCombiner3DPotato" index="0" unique_id=125051486]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.03307341)
|
||||||
|
radius = 0.06
|
||||||
|
radial_segments = 32
|
||||||
|
material = SubResource("StandardMaterial3D_d4wpw")
|
||||||
|
|
||||||
|
[node name="CSGSphere3D2" type="CSGSphere3D" parent="Model/CSGCombiner3DPotato" index="1" unique_id=837168454]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.03243477)
|
||||||
|
radius = 0.053
|
||||||
|
radial_segments = 32
|
||||||
|
material = SubResource("StandardMaterial3D_d4wpw")
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
extends Control
|
|
||||||
|
|
||||||
## The 2D UI rendered inside the world-space menu (XRToolsViewport2DIn3D).
|
|
||||||
## Lets the player type an IP on a numeric keypad and pick Host / Join / Solo.
|
|
||||||
## Pure UI: it emits intents; main.gd performs the networking.
|
|
||||||
|
|
||||||
signal host_pressed()
|
|
||||||
signal join_pressed(ip: String)
|
|
||||||
signal solo_pressed()
|
|
||||||
|
|
||||||
#var _ip := "127.0.0.1"
|
|
||||||
var _ip := "51.175.10.161"
|
|
||||||
|
|
||||||
@onready var _ip_label: Label = %IPLabel
|
|
||||||
@onready var _status: Label = %Status
|
|
||||||
@onready var _keypad: GridContainer = %Keypad
|
|
||||||
@onready var _host_btn: Button = %HostButton
|
|
||||||
@onready var _join_btn: Button = %JoinButton
|
|
||||||
@onready var _solo_btn: Button = %SoloButton
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
for child in _keypad.get_children():
|
|
||||||
if child is Button:
|
|
||||||
child.pressed.connect(_on_key.bind(child.text))
|
|
||||||
_host_btn.pressed.connect(func(): host_pressed.emit())
|
|
||||||
_join_btn.pressed.connect(func(): join_pressed.emit(_ip))
|
|
||||||
_solo_btn.pressed.connect(func(): solo_pressed.emit())
|
|
||||||
_refresh()
|
|
||||||
|
|
||||||
|
|
||||||
func _on_key(key: String) -> void:
|
|
||||||
match key:
|
|
||||||
"DEL":
|
|
||||||
_ip = _ip.substr(0, max(0, _ip.length() - 1))
|
|
||||||
_:
|
|
||||||
if _ip.length() < 21:
|
|
||||||
_ip += key
|
|
||||||
_refresh()
|
|
||||||
|
|
||||||
|
|
||||||
func _refresh() -> void:
|
|
||||||
_ip_label.text = _ip if not _ip.is_empty() else "_"
|
|
||||||
|
|
||||||
|
|
||||||
## Called by main.gd (via network_menu) to show connection feedback.
|
|
||||||
func set_status(text: String) -> void:
|
|
||||||
if _status:
|
|
||||||
_status.text = text
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://dvivyrspjcjgm
|
|
||||||
@@ -0,0 +1,160 @@
|
|||||||
|
extends Node3D
|
||||||
|
|
||||||
|
## World script for the multiplayer scene. Consumes the host/join request set
|
||||||
|
## by the main menu, spawns the world's stations/items on whichever machine
|
||||||
|
## owns the world (server, or the local player when offline), spawns/despawns
|
||||||
|
## a player avatar per connected peer, and returns to the menu if the session
|
||||||
|
## ends.
|
||||||
|
##
|
||||||
|
## The world's actual content (stations, items) is NOT baked into this scene —
|
||||||
|
## it's spawned at runtime from Net/world_layout.gd via NetworkManager, so a
|
||||||
|
## joining client receives it from the server (MultiplayerSpawner replays
|
||||||
|
## existing spawns to late joiners) instead of relying on its own local copy
|
||||||
|
## matching.
|
||||||
|
|
||||||
|
const PLAYER_SCENE := preload("res://Player/net_player.tscn")
|
||||||
|
|
||||||
|
## Whether to spawn the full WorldLayout on the machine that owns the world.
|
||||||
|
## The real game scene wants this; focused debug scenes (test/) bake their own
|
||||||
|
## handful of stations and items instead and turn it off, so the thing under
|
||||||
|
## test isn't sharing the world with a second copy of the whole kitchen.
|
||||||
|
@export var populate_from_layout: bool = true
|
||||||
|
|
||||||
|
var xr_interface: XRInterface
|
||||||
|
var _populated := false
|
||||||
|
|
||||||
|
@export var items_spawner: MultiplayerSpawner
|
||||||
|
@export var players_spawner: MultiplayerSpawner
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
xr_interface = XRServer.find_interface("OpenXR")
|
||||||
|
if xr_interface and xr_interface.is_initialized():
|
||||||
|
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
|
||||||
|
get_viewport().use_xr = true
|
||||||
|
|
||||||
|
NetworkManager.register_world(self, players_spawner, items_spawner)
|
||||||
|
NetworkManager.player_joined.connect(_on_player_joined)
|
||||||
|
NetworkManager.player_left.connect(_on_player_left)
|
||||||
|
NetworkManager.session_started.connect(_on_session_started)
|
||||||
|
NetworkManager.session_ended.connect(_on_session_ended)
|
||||||
|
NetworkManager.connection_failed.connect(_on_connection_failed)
|
||||||
|
|
||||||
|
# world_ready() is what actually calls host()/join() (or the cmdline
|
||||||
|
# equivalent). Populating before this point is wrong for EVERY case, not
|
||||||
|
# just offline: is_online() is still false until host()/join() runs, so
|
||||||
|
# owns_world() would read true for a joining client too, and it would
|
||||||
|
# build its own local copy instead of receiving the server's via the
|
||||||
|
# spawner. host() emits session_started synchronously, which populates
|
||||||
|
# via _on_session_started below; the explicit call after world_ready()
|
||||||
|
# only matters for the case where neither host() nor join() ran (no
|
||||||
|
# pending session, no cmdline args) — running this scene directly offline.
|
||||||
|
NetworkManager.world_ready()
|
||||||
|
_populate_world_if_owner()
|
||||||
|
|
||||||
|
get_tree().create_timer(3.0).timeout.connect(_log_world_state)
|
||||||
|
|
||||||
|
|
||||||
|
# Temporary-ish sanity check: confirms WorldContent actually ended up
|
||||||
|
# populated on this peer (whether by spawning it or by receiving it via
|
||||||
|
# replication), so a silent replication failure shows up in the net log
|
||||||
|
# instead of just an empty-looking world.
|
||||||
|
func _log_world_state() -> void:
|
||||||
|
NetworkManager.log_line("World state: WorldContent=%d children, Players=%d children" % [$WorldContent.get_child_count(), $Players.get_child_count()])
|
||||||
|
|
||||||
|
|
||||||
|
func _exit_tree() -> void:
|
||||||
|
NetworkManager.unregister_world()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_session_started(_is_server: bool) -> void:
|
||||||
|
_populate_world_if_owner()
|
||||||
|
|
||||||
|
|
||||||
|
## Spawns the world's stations/items exactly once, on the machine that owns
|
||||||
|
## world logic (server or offline). Safe to call multiple times/entry points.
|
||||||
|
func _populate_world_if_owner() -> void:
|
||||||
|
if _populated or not populate_from_layout:
|
||||||
|
return
|
||||||
|
# WorldLayout reads the live scene tree to find what to replicate, so it
|
||||||
|
# needs to be an instance sitting in that tree — its methods can't be called
|
||||||
|
# on the class itself.
|
||||||
|
var layout := WorldLayout.new()
|
||||||
|
add_child(layout)
|
||||||
|
var authored := layout.get_station_nodes()
|
||||||
|
authored.append_array(layout.get_item_nodes())
|
||||||
|
|
||||||
|
# The stations and items authored into the scene file are a *template*, not
|
||||||
|
# the live world. Only the server turns them into real objects, spawned
|
||||||
|
# through NetworkManager so they replicate. Every peer therefore drops its
|
||||||
|
# own authored copies: the client would otherwise show its local originals
|
||||||
|
# on top of the server's replicated ones, and the two sets would drift apart
|
||||||
|
# because only the server's are synced.
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
NetworkManager.log_line("Clearing %d authored nodes; the server's copies replace them" % authored.size())
|
||||||
|
_remove_authored(authored)
|
||||||
|
layout.queue_free()
|
||||||
|
return
|
||||||
|
|
||||||
|
_init_recipes()
|
||||||
|
_populated = true
|
||||||
|
var stations := layout.get_stations()
|
||||||
|
var items := layout.get_items()
|
||||||
|
layout.queue_free()
|
||||||
|
_remove_authored(authored)
|
||||||
|
NetworkManager.log_line("Populating world: %d stations, %d items" % [stations.size(), items.size()])
|
||||||
|
# One frame between spawns - MultiplayerSpawner corrupts replication when
|
||||||
|
# several nodes register for sync in the same frame (godotengine/godot#96914).
|
||||||
|
for d in stations:
|
||||||
|
NetworkManager.spawn_item(d["scene"], d["xform"], d["name"], d["props"])
|
||||||
|
await get_tree().process_frame
|
||||||
|
for d in items:
|
||||||
|
NetworkManager.spawn_item(d["scene"], d["xform"], d["name"], d["props"])
|
||||||
|
await get_tree().process_frame
|
||||||
|
NetworkManager.log_line("World populated")
|
||||||
|
|
||||||
|
|
||||||
|
func _init_recipes():
|
||||||
|
GameManager.set_meals_in_play(["hamburger"])
|
||||||
|
GameManager.set_sides_in_play(["cube"])
|
||||||
|
|
||||||
|
|
||||||
|
# Free the authored template nodes. Done immediately rather than with
|
||||||
|
# queue_free() so the names are released before the replicated copies are
|
||||||
|
# spawned under the same ones.
|
||||||
|
func _remove_authored(nodes: Array[Node]) -> void:
|
||||||
|
for node in nodes:
|
||||||
|
if is_instance_valid(node):
|
||||||
|
node.get_parent().remove_child(node)
|
||||||
|
node.free()
|
||||||
|
|
||||||
|
|
||||||
|
## Only the server (or the single offline machine) materialises player
|
||||||
|
## avatars; MultiplayerSpawner replicates the result to everyone else,
|
||||||
|
## including late joiners.
|
||||||
|
func _on_player_joined(peer_id: int) -> void:
|
||||||
|
if not NetworkManager.owns_world() or $Players.has_node(str(peer_id)):
|
||||||
|
return
|
||||||
|
var p := PLAYER_SCENE.instantiate()
|
||||||
|
p.name = str(peer_id)
|
||||||
|
$Players.add_child(p, true)
|
||||||
|
NetworkManager.log_line("Spawned avatar for peer %d" % peer_id)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_player_left(peer_id: int) -> void:
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
return
|
||||||
|
var p := $Players.get_node_or_null(str(peer_id))
|
||||||
|
if p:
|
||||||
|
p.queue_free()
|
||||||
|
NetworkManager.log_line("Despawned avatar for peer %d" % peer_id)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_session_ended() -> void:
|
||||||
|
NetworkManager.log_line("Session ended, returning to main menu")
|
||||||
|
get_tree().change_scene_to_file("res://scenes/mainMenu.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_connection_failed() -> void:
|
||||||
|
NetworkManager.log_line("Connection failed, returning to main menu")
|
||||||
|
get_tree().change_scene_to_file("res://scenes/mainMenu.tscn")
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://d1cefhe3yyyds
|
||||||
@@ -0,0 +1,225 @@
|
|||||||
|
extends MultiplayerSynchronizer
|
||||||
|
|
||||||
|
## Networked sync component for a pickable item. Added as a child literally
|
||||||
|
## named "NetPickable" (network_manager.gd's authority RPCs already expect
|
||||||
|
## this) of every net-synced pickable, replicating its transform and held
|
||||||
|
## state. Only the current multiplayer authority (the server while loose, or
|
||||||
|
## whichever peer is holding it) actually simulates physics for the item;
|
||||||
|
## every other peer freezes their local copy and just follows the synced
|
||||||
|
## transform.
|
||||||
|
|
||||||
|
## 0 = loose/server-simulated; otherwise the peer id currently holding it.
|
||||||
|
## Replicated at spawn and on change so a late joiner sees the current holder.
|
||||||
|
var net_held_by: int = 0: set = _set_net_held_by
|
||||||
|
|
||||||
|
var _pickable: XRToolsPickable
|
||||||
|
|
||||||
|
# This item's own baked freeze_mode (e.g. plate.tscn bakes KINEMATIC, not the
|
||||||
|
# RigidBody3D default of STATIC) — captured once so it can be restored when
|
||||||
|
# this peer regains ownership, instead of getting stuck on whatever
|
||||||
|
# apply_held_state() last forced it to while non-authority.
|
||||||
|
var _original_freeze_mode: RigidBody3D.FreezeMode
|
||||||
|
|
||||||
|
# Same idea for the pickable's authored `enabled` flag, which the non-authority
|
||||||
|
# branch of apply_held_state() clears while someone else is holding the item.
|
||||||
|
var _original_enabled: bool
|
||||||
|
|
||||||
|
# Intent set by external game logic (e.g. a station enabling/disabling a tool),
|
||||||
|
# independent of hold state. apply_held_state() is the sole writer of the
|
||||||
|
# pickable's actual `enabled` property, so this is how other systems express
|
||||||
|
# "should be enabled" without fighting that reconciliation every tick.
|
||||||
|
var _tool_enabled: bool = true
|
||||||
|
|
||||||
|
# Whether the "our own hand still holds this" guard has already been logged for
|
||||||
|
# the current grab. apply_held_state() runs every network tick, so without this
|
||||||
|
# the guard message repeats for as long as you hold the item.
|
||||||
|
var _grab_race_logged := false
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
_pickable = get_parent() as XRToolsPickable
|
||||||
|
if not _pickable:
|
||||||
|
SweetLogger.error("{0} must be a child of an XRToolsPickable", [name])
|
||||||
|
return
|
||||||
|
|
||||||
|
# Configure Multiplayer Synchronizer
|
||||||
|
# This overwrites any changes made in the inspector.
|
||||||
|
replication_config = SceneReplicationConfig.new()
|
||||||
|
var properties: Array[NodePath] = [".:position", ".:quaternion", ".:enabled", ".:visible"]
|
||||||
|
for property_path in properties:
|
||||||
|
replication_config.add_property(property_path)
|
||||||
|
replication_config.property_set_replication_mode(property_path, SceneReplicationConfig.REPLICATION_MODE_ALWAYS)
|
||||||
|
replication_config.property_set_spawn(property_path, false)
|
||||||
|
# Unlike the properties above, this one is replicated at spawn too, so a
|
||||||
|
# late joiner sees the current holder immediately.
|
||||||
|
var held_by_path := NodePath("NetPickable:net_held_by")
|
||||||
|
replication_config.add_property(held_by_path)
|
||||||
|
replication_config.property_set_replication_mode(held_by_path, SceneReplicationConfig.REPLICATION_MODE_ALWAYS)
|
||||||
|
replication_config.property_set_spawn(held_by_path, true)
|
||||||
|
|
||||||
|
_original_freeze_mode = _pickable.freeze_mode
|
||||||
|
_original_enabled = _pickable.enabled
|
||||||
|
_pickable.picked_up.connect(_on_picked_up)
|
||||||
|
_pickable.dropped.connect(_on_dropped)
|
||||||
|
# Deferred: the pickable root captures its own original_collision_mask/
|
||||||
|
# original_collision_layer via @onready, which runs AFTER this child's
|
||||||
|
# _ready() but BEFORE the root's _ready() body. Calling apply_held_state
|
||||||
|
# synchronously here would freeze/mask the item before that capture runs,
|
||||||
|
# permanently corrupting the "restore on drop" values.
|
||||||
|
apply_held_state.call_deferred()
|
||||||
|
|
||||||
|
|
||||||
|
## Called by external game logic (e.g. Counter._enable_tool/_disable_tool) to
|
||||||
|
## express whether this item should be usable right now, independent of hold
|
||||||
|
## state. Reapplies immediately so the change takes effect without waiting for
|
||||||
|
## the next net_held_by tick.
|
||||||
|
func set_tool_enabled(value: bool) -> void:
|
||||||
|
if _tool_enabled == value:
|
||||||
|
return
|
||||||
|
_tool_enabled = value
|
||||||
|
apply_held_state()
|
||||||
|
|
||||||
|
|
||||||
|
func _set_net_held_by(value: int) -> void:
|
||||||
|
var old := net_held_by
|
||||||
|
net_held_by = value
|
||||||
|
if old != value and NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0} net_held_by: {1} -> {2} (local state: {3}, authority={4})", [_pickable.name, old, value, _holder_desc(), get_multiplayer_authority()])
|
||||||
|
apply_held_state()
|
||||||
|
|
||||||
|
|
||||||
|
## Puts the item in the right physics state for whether this peer currently
|
||||||
|
## owns it. Called locally after net_held_by changes, and directly by
|
||||||
|
## NetworkManager._set_item_authority right after an authority handoff.
|
||||||
|
##
|
||||||
|
## IMPORTANT: this runs on every network tick, not just on a real change.
|
||||||
|
## net_held_by is replicated in ALWAYS mode, so the synchronizer assigns it every
|
||||||
|
## tick on non-authority peers — unchanged value included — and that assignment
|
||||||
|
## lands in _set_net_held_by(), which calls this. So every branch here has to be
|
||||||
|
## idempotent and silent when there is nothing to do: otherwise each item logs a
|
||||||
|
## line and rewrites four physics properties every tick on every peer that
|
||||||
|
## doesn't own it.
|
||||||
|
func apply_held_state() -> void:
|
||||||
|
if not _pickable:
|
||||||
|
return
|
||||||
|
if not NetworkManager.is_online() or (is_inside_tree() and is_multiplayer_authority()) :
|
||||||
|
_grab_race_logged = false
|
||||||
|
# We own this item's simulation (offline, loose+server, or currently
|
||||||
|
# holding it). If it's not actively in our own hand right now, make
|
||||||
|
# sure it isn't still left frozen/collision-less from a previous
|
||||||
|
# non-authority period (e.g. right after regaining authority when a
|
||||||
|
# client released it) — while actually held, XRToolsPickable's own
|
||||||
|
# pick_up()/let_go() already manage these fields, so leave those be.
|
||||||
|
if not _pickable.is_picked_up():
|
||||||
|
var changed := _pickable.freeze_mode != _original_freeze_mode \
|
||||||
|
or _pickable.collision_mask != _pickable.original_collision_mask
|
||||||
|
if changed:
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0}: reclaiming ownership, restoring freeze_mode {1}->{2} collision_mask {3}->{4}", [_pickable.name, _pickable.freeze_mode, _original_freeze_mode, _pickable.collision_mask, _pickable.original_collision_mask])
|
||||||
|
_pickable.freeze_mode = _original_freeze_mode
|
||||||
|
_pickable.collision_mask = _pickable.original_collision_mask
|
||||||
|
# Unlike freeze/collision (which XRToolsPickable manages itself while
|
||||||
|
# held), `enabled` is only ever written by the non-authority branch
|
||||||
|
# below, so it must be restored here or it stays false forever: once a
|
||||||
|
# client grabbed this item, every other peer set enabled=false, and
|
||||||
|
# regaining authority left it that way. On the server that silently
|
||||||
|
# broke everything downstream — hands couldn't pick the item up again,
|
||||||
|
# and a station snap zone would "snap" it (emitting has_picked_up, so
|
||||||
|
# e.g. a plate still got marked dirty) while pick_up() bailed out on
|
||||||
|
# the disabled item, leaving the zone holding an item with no grab
|
||||||
|
# driver that then fell out of the station.
|
||||||
|
var want_enabled_authority := _original_enabled and _tool_enabled
|
||||||
|
if _pickable.enabled != want_enabled_authority:
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0}: reclaiming ownership, restoring enabled {1}->{2}", [_pickable.name, _pickable.enabled, want_enabled_authority])
|
||||||
|
_pickable.enabled = want_enabled_authority
|
||||||
|
return
|
||||||
|
# A net_held_by/position sync update can race ahead of the
|
||||||
|
# authority-handoff RPC that's about to confirm a grab we just made
|
||||||
|
# optimistically (they travel on different channels with no ordering
|
||||||
|
# guarantee). Don't let a stale sync value yank an item out of our own
|
||||||
|
# hand mid-grab — only an explicit force_release_item rejection, or
|
||||||
|
# actually losing authority for real, should end a grab we initiated.
|
||||||
|
if _pickable.is_picked_up() and _pickable.get_picked_up_by() is XRToolsFunctionPickup:
|
||||||
|
# Log once per grab, not once per tick.
|
||||||
|
if NetworkManager.is_online() and not _grab_race_logged:
|
||||||
|
_grab_race_logged = true
|
||||||
|
SweetLogger.debug("{0}: ignoring non-authority sync (net_held_by={1}) — still actively held by our own hand (grab-race guard)", [_pickable.name, net_held_by])
|
||||||
|
return
|
||||||
|
_grab_race_logged = false
|
||||||
|
# Someone else owns it: stop simulating locally, just follow the sync.
|
||||||
|
if _pickable.is_picked_up():
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
# Jon's note: When we get this warning, it usually mean a client-side snapzone is not disabled, and is fighting the server over the item.
|
||||||
|
SweetLogger.warning("{0}: was held by {1} on this peer, but authority now says peer {2} owns it — force-dropping", [_pickable.name, _holder_desc(), net_held_by])
|
||||||
|
_pickable.drop()
|
||||||
|
# Bail out when we're already in the follow-the-sync state. Without this the
|
||||||
|
# writes below (and the line logged with them) repeated every tick for every
|
||||||
|
# item on every non-authority peer — 90% of the log, plus four redundant
|
||||||
|
# physics-property writes per item per tick. The comparison also means we
|
||||||
|
# still re-apply if something else perturbs the state (e.g. let_go()
|
||||||
|
# restoring the collision mask after a force-drop).
|
||||||
|
var want_enabled := (net_held_by == 0) and _tool_enabled
|
||||||
|
if _pickable.freeze \
|
||||||
|
and _pickable.freeze_mode == RigidBody3D.FREEZE_MODE_KINEMATIC \
|
||||||
|
and _pickable.collision_mask == 0 \
|
||||||
|
and _pickable.enabled == want_enabled:
|
||||||
|
return
|
||||||
|
# if NetworkManager.is_online(): # This was spamming that Knife was frozen every frame.
|
||||||
|
# print("%s: freezing (non-authority, owner=peer %d)" % [_pickable.name, net_held_by])
|
||||||
|
_pickable.freeze = true
|
||||||
|
_pickable.freeze_mode = RigidBody3D.FREEZE_MODE_KINEMATIC
|
||||||
|
_pickable.collision_mask = 0
|
||||||
|
_pickable.enabled = want_enabled
|
||||||
|
|
||||||
|
|
||||||
|
## Local hand grab (not a station snap zone, which is server-only): request
|
||||||
|
## authority immediately so the throw/drop can be reconciled, but let the grab
|
||||||
|
## happen instantly here rather than waiting on the round trip.
|
||||||
|
func _on_picked_up(_p) -> void:
|
||||||
|
var by := _pickable.get_picked_up_by()
|
||||||
|
if not (by is XRToolsFunctionPickup):
|
||||||
|
# e.g. a station snap zone grabbed it (server-side auto-snap, or the
|
||||||
|
# addon's own "grab out of a snap zone" shortcut mid-cascade) — not a
|
||||||
|
# player-initiated hand grab, so no authority request from here.
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0} picked up by {1} (not a hand) — no authority request", [_pickable.name, _holder_desc()])
|
||||||
|
return
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0} grabbed by hand (authority was peer {1}), requesting authority", [_pickable.name, net_held_by])
|
||||||
|
NetworkManager.request_item_authority_from(_pickable.get_path())
|
||||||
|
|
||||||
|
|
||||||
|
func _on_dropped(_p) -> void:
|
||||||
|
# Only forward if we're actually still the authority — a drop caused by
|
||||||
|
# apply_held_state() losing authority (see above) must not re-report.
|
||||||
|
if not is_multiplayer_authority():
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0} dropped locally, but we aren't its authority (peer {1} is) — not reporting", [_pickable.name, net_held_by])
|
||||||
|
return
|
||||||
|
if NetworkManager.is_online():
|
||||||
|
SweetLogger.debug("{0} dropped, reporting release to server (lin={1} ang={2})", [_pickable.name, _pickable.linear_velocity, _pickable.angular_velocity])
|
||||||
|
# Send our own final transform too: we were the authority until now, and the
|
||||||
|
# server's copy may not have received our last position sync yet.
|
||||||
|
NetworkManager.release_item_authority_from(
|
||||||
|
_pickable.get_path(), _pickable.linear_velocity, _pickable.angular_velocity,
|
||||||
|
_pickable.global_transform
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
## Human-readable description of what's currently holding this item on THIS
|
||||||
|
## peer, for diagnosing desyncs between a hand's own "what am I holding"
|
||||||
|
## bookkeeping and the item's actual grab state (see the snap-zone-grab race
|
||||||
|
## in NetworkManager._try_snap_into_station for a real example).
|
||||||
|
func _holder_desc() -> String:
|
||||||
|
if not _pickable or not _pickable.is_picked_up():
|
||||||
|
return "loose"
|
||||||
|
var by := _pickable.get_picked_up_by()
|
||||||
|
if not by:
|
||||||
|
return "held(no grabber?)"
|
||||||
|
if by is XRToolsFunctionPickup:
|
||||||
|
return "hand(%s)" % by.get_path()
|
||||||
|
if by is XRToolsSnapZone:
|
||||||
|
var station := by.get_parent()
|
||||||
|
return "zone(%s)" % (str(station.name) if station else str(by.get_path()))
|
||||||
|
return "other(%s: %s)" % [by.get_class(), by.get_path()]
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bwd0pe2udb5xo
|
||||||
+239
-46
@@ -24,9 +24,15 @@ signal connection_failed()
|
|||||||
var _world: Node = null
|
var _world: Node = null
|
||||||
var _players_spawner: MultiplayerSpawner = null
|
var _players_spawner: MultiplayerSpawner = null
|
||||||
var _items_spawner: MultiplayerSpawner = null
|
var _items_spawner: MultiplayerSpawner = null
|
||||||
|
var _content_root: Node = null
|
||||||
|
|
||||||
var _log_file: FileAccess
|
var _log_file: FileAccess
|
||||||
|
|
||||||
|
## Reason the session ended, shown by the menu on the next _ready() (see
|
||||||
|
## take_status). Avoids depending on a live signal connection to a panel that
|
||||||
|
## doesn't exist yet at the moment the session actually ends.
|
||||||
|
var last_status := ""
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
_open_log()
|
_open_log()
|
||||||
@@ -80,80 +86,176 @@ func _go_offline() -> void:
|
|||||||
if multiplayer.multiplayer_peer:
|
if multiplayer.multiplayer_peer:
|
||||||
multiplayer.multiplayer_peer.close()
|
multiplayer.multiplayer_peer.close()
|
||||||
multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()
|
multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()
|
||||||
|
unregister_world()
|
||||||
|
|
||||||
|
|
||||||
# --- Item spawning ---------------------------------------------------------
|
# --- Item spawning ---------------------------------------------------------
|
||||||
|
|
||||||
## Spawn a networked item. Server-only when online (replicates to all peers via
|
## Spawn a networked item. Server-only when online (replicates to all peers via
|
||||||
## the ItemsSpawner); works directly when offline. Returns the new node on the
|
## the ItemsSpawner, including late joiners); works directly when offline.
|
||||||
## machine that owns spawning, else null.
|
## node_name gives the spawned node a deterministic, identical name on every
|
||||||
func spawn_item(scene_path: String, xform: Transform3D) -> Node:
|
## peer (needed for NodePath-based RPCs to resolve it); props are applied to
|
||||||
|
## the instance before it enters the tree, so exported vars land correctly.
|
||||||
|
## Returns the new node on the machine that owns spawning, else null.
|
||||||
|
func spawn_item(scene_path: String, xform: Transform3D, node_name: String = "", props: Dictionary = {}) -> Node:
|
||||||
if is_online() and not is_server():
|
if is_online() and not is_server():
|
||||||
return null
|
return null
|
||||||
var data := {"scene": scene_path, "xform": xform}
|
var data := {"scene": scene_path, "xform": xform, "name": node_name, "props": props}
|
||||||
|
var via := "spawner" if (is_online() and _items_spawner) else "offline"
|
||||||
|
log_line("spawn_item: %s (name=%s, via=%s)" % [scene_path.get_file(), node_name, via])
|
||||||
if is_online() and _items_spawner:
|
if is_online() and _items_spawner:
|
||||||
return _items_spawner.spawn(data)
|
return _items_spawner.spawn(data)
|
||||||
# Offline: instantiate directly under the world.
|
# Offline: instantiate directly under the registered content root, or (for
|
||||||
|
# scenes that never call register_world, e.g. the offline menu/dev scenes)
|
||||||
|
# the current scene, so this keeps working without every offline scene
|
||||||
|
# needing to opt in.
|
||||||
var inst := _spawn_item_from_data(data)
|
var inst := _spawn_item_from_data(data)
|
||||||
if _world and inst:
|
if inst:
|
||||||
_world.add_child(inst)
|
var parent: Node = _content_root if _content_root else get_tree().current_scene
|
||||||
|
if parent:
|
||||||
|
parent.add_child(inst)
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
|
|
||||||
|
## Despawn a server-spawned item. MultiplayerSpawner broadcasts a despawn to
|
||||||
|
## every peer when a tracked node exits the tree on the authority, so this is
|
||||||
|
## the single seam for destroying spawned items (works offline too).
|
||||||
|
func despawn_item(node: Node) -> void:
|
||||||
|
if not owns_world() or not is_instance_valid(node):
|
||||||
|
return
|
||||||
|
log_line("despawn_item: %s" % node.name)
|
||||||
|
# Items that came from the ItemsSpawner are despawned on every peer
|
||||||
|
# automatically when they leave the tree here. Items baked into a scene file
|
||||||
|
# are unknown to the spawner, so their removal has to be broadcast
|
||||||
|
# explicitly — otherwise every client keeps a ghost copy of an item the
|
||||||
|
# server has consumed, which then blocks the station it was sitting in and
|
||||||
|
# gets grabbed instead of the real item that replaced it.
|
||||||
|
if is_online() and not _is_spawner_tracked(node):
|
||||||
|
_despawn_static_item.rpc(node.get_path())
|
||||||
|
node.queue_free()
|
||||||
|
|
||||||
|
|
||||||
|
# Items the ItemsSpawner replicates live under its spawn path; anything else was
|
||||||
|
# baked into the scene file and the spawner knows nothing about it.
|
||||||
|
func _is_spawner_tracked(node: Node) -> bool:
|
||||||
|
return _content_root != null and _content_root.is_ancestor_of(node)
|
||||||
|
|
||||||
|
|
||||||
|
@rpc("authority", "call_remote", "reliable")
|
||||||
|
func _despawn_static_item(path: NodePath) -> void:
|
||||||
|
var node := get_node_or_null(path)
|
||||||
|
if node:
|
||||||
|
log_line("despawn_static_item: freeing %s (the server consumed it)" % node.name)
|
||||||
|
node.queue_free()
|
||||||
|
|
||||||
|
|
||||||
# MultiplayerSpawner custom spawn function: runs on every peer to build the node
|
# MultiplayerSpawner custom spawn function: runs on every peer to build the node
|
||||||
# from the replicated payload.
|
# from the replicated payload.
|
||||||
func _spawn_item_from_data(data: Variant) -> Node:
|
func _spawn_item_from_data(data: Variant) -> Node:
|
||||||
var scene: PackedScene = load(data["scene"])
|
var scene: PackedScene = load(data["scene"])
|
||||||
if not scene:
|
if not scene:
|
||||||
push_error("spawn_item: could not load scene %s" % str(data.get("scene")))
|
SweetLogger.error("Could not load scene {0}", [str(data.get("scene"))])
|
||||||
return null
|
return null
|
||||||
var inst := scene.instantiate()
|
var inst := scene.instantiate()
|
||||||
if inst is Node3D:
|
if inst is Node3D:
|
||||||
inst.transform = data["xform"]
|
inst.transform = data["xform"]
|
||||||
|
if data.get("name", "") != "":
|
||||||
|
inst.name = data["name"]
|
||||||
|
for key in data.get("props", {}):
|
||||||
|
inst.set(key, data["props"][key])
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
|
|
||||||
# --- Item grab-authority transfer -----------------------------------------
|
# --- Item grab-authority transfer -----------------------------------------
|
||||||
|
|
||||||
## A client (or host) requests authority over an item it just grabbed. Runs on
|
## Called by NetPickable when this peer grabs an item by hand. Godot rejects
|
||||||
## the server. If the item was snapped into a station, the station releases it
|
## rpc_id() targeting your own peer id ("RPC on yourself is not allowed"), so
|
||||||
## so the grabber cleanly takes ownership.
|
## when we ARE the server this runs the logic directly instead of round-
|
||||||
|
## tripping an RPC to ourselves — otherwise every host-side grab/drop was
|
||||||
|
## silently failing to run its server-side half (no denial checks, and
|
||||||
|
## crucially no auto-snap-into-station on release).
|
||||||
|
func request_item_authority_from(item_path: NodePath) -> void:
|
||||||
|
if is_server():
|
||||||
|
_grant_or_reject_item_authority(item_path, multiplayer.get_unique_id())
|
||||||
|
else:
|
||||||
|
_request_item_authority_rpc.rpc_id(1, item_path)
|
||||||
|
|
||||||
|
|
||||||
@rpc("any_peer", "reliable")
|
@rpc("any_peer", "reliable")
|
||||||
func request_item_authority(item_path: NodePath) -> void:
|
func _request_item_authority_rpc(item_path: NodePath) -> void:
|
||||||
if not is_server():
|
if not is_server():
|
||||||
return
|
return
|
||||||
var sender := multiplayer.get_remote_sender_id()
|
_grant_or_reject_item_authority(item_path, multiplayer.get_remote_sender_id())
|
||||||
|
|
||||||
|
|
||||||
|
## Runs on the server (called directly if the requester IS the server, or via
|
||||||
|
## the RPC above otherwise). If the item was snapped into a station, the
|
||||||
|
## station releases it so the grabber cleanly takes ownership.
|
||||||
|
func _grant_or_reject_item_authority(item_path: NodePath, sender: int) -> void:
|
||||||
|
var item := get_node_or_null(item_path)
|
||||||
|
if item:
|
||||||
|
var np := item.get_node_or_null("NetPickable")
|
||||||
|
if np and np.net_held_by != 0 and np.net_held_by != sender:
|
||||||
|
# Already legitimately held by a different live peer: reject the
|
||||||
|
# requester's optimistic client-side grab instead of stealing it.
|
||||||
|
log_line("request_item_authority: DENIED %s to peer %d (already held by %d)" % [item.name, sender, np.net_held_by])
|
||||||
|
_force_release_item_to(sender, item_path)
|
||||||
|
return
|
||||||
|
log_line("request_item_authority: granting %s to peer %d" % [str(item.name) if item else str(item_path), sender])
|
||||||
# Assign authority + held state first (disables the item on the server so its
|
# Assign authority + held state first (disables the item on the server so its
|
||||||
# snap zone won't re-grab it), then release it from any station.
|
# snap zone won't re-grab it), then release it from any station.
|
||||||
_set_item_authority.rpc(item_path, sender)
|
_set_item_authority.rpc(item_path, sender)
|
||||||
var item := get_node_or_null(item_path)
|
|
||||||
if item:
|
if item:
|
||||||
_release_from_snap_zones(item)
|
_release_from_snap_zones(item)
|
||||||
|
|
||||||
|
|
||||||
## A player releases an item, forwarding its throw velocity so the server can
|
## Called by NetPickable when this peer releases an item, forwarding its throw
|
||||||
## resume simulating it. Runs on the server. If released next to a station, the
|
## velocity so the server can resume simulating it. Same self-RPC issue as
|
||||||
## server snaps it in (server-authoritative placement).
|
## above: runs directly if we're the server.
|
||||||
|
func release_item_authority_from(item_path: NodePath, lin: Vector3, ang: Vector3, xform: Transform3D) -> void:
|
||||||
|
if is_server():
|
||||||
|
_do_release_item_authority(item_path, lin, ang, xform, multiplayer.get_unique_id())
|
||||||
|
else:
|
||||||
|
_release_item_authority_rpc.rpc_id(1, item_path, lin, ang, xform)
|
||||||
|
|
||||||
|
|
||||||
@rpc("any_peer", "reliable")
|
@rpc("any_peer", "reliable")
|
||||||
func release_item_authority(item_path: NodePath, lin: Vector3, ang: Vector3) -> void:
|
func _release_item_authority_rpc(item_path: NodePath, lin: Vector3, ang: Vector3, xform: Transform3D) -> void:
|
||||||
if not is_server():
|
if not is_server():
|
||||||
return
|
return
|
||||||
|
_do_release_item_authority(item_path, lin, ang, xform, multiplayer.get_remote_sender_id())
|
||||||
|
|
||||||
|
|
||||||
|
## Runs on the server. If released next to a station, the server snaps it in
|
||||||
|
## (server-authoritative placement).
|
||||||
|
func _do_release_item_authority(item_path: NodePath, lin: Vector3, ang: Vector3, xform: Transform3D, sender: int) -> void:
|
||||||
|
log_line("release_item_authority: %s released by peer %d" % [str(item_path), sender])
|
||||||
_set_item_authority.rpc(item_path, 1)
|
_set_item_authority.rpc(item_path, 1)
|
||||||
var item := get_node_or_null(item_path)
|
var item := get_node_or_null(item_path)
|
||||||
if item is RigidBody3D:
|
if item is RigidBody3D:
|
||||||
|
# Adopt the releasing peer's own final transform rather than trusting our
|
||||||
|
# copy's. That peer was the item's authority right up to this moment, and
|
||||||
|
# its position updates travel on the synchronizer's separate, unordered
|
||||||
|
# channel — this reliable RPC routinely overtakes them, leaving our copy
|
||||||
|
# still sitting where the item was BEFORE the peer carried it away. The
|
||||||
|
# snap decision below then reads that stale position and teleports the
|
||||||
|
# item straight back into the station it was just picked up from.
|
||||||
|
item.global_transform = xform
|
||||||
item.freeze = false
|
item.freeze = false
|
||||||
item.linear_velocity = lin
|
item.linear_velocity = lin
|
||||||
item.angular_velocity = ang
|
item.angular_velocity = ang
|
||||||
_try_snap_into_station(item)
|
_try_snap_into_station.call_deferred(item)
|
||||||
|
|
||||||
|
|
||||||
# All station snap zones in the world (nodes in the "station" group).
|
# All station snap zones in the world (every XRToolsSnapZone under a node in the
|
||||||
|
# "station" group — some stations, e.g. Table, have more than one). Derived from
|
||||||
|
# the station body rather than from the "station_zone" group directly, so zones
|
||||||
|
# that are deliberately not server-placeable (the player's Hatch) stay out.
|
||||||
func _station_snap_zones() -> Array:
|
func _station_snap_zones() -> Array:
|
||||||
var zones := []
|
var zones := []
|
||||||
for station in get_tree().get_nodes_in_group("station"):
|
for station in get_tree().get_nodes_in_group("station"):
|
||||||
var zone = station.get_node_or_null("XRToolsSnapZone")
|
for zone in station.find_children("*", "XRToolsSnapZone", true, false):
|
||||||
if zone:
|
if not zones.has(zone):
|
||||||
zones.append(zone)
|
zones.append(zone)
|
||||||
return zones
|
return zones
|
||||||
|
|
||||||
|
|
||||||
@@ -161,19 +263,52 @@ func _station_snap_zones() -> Array:
|
|||||||
func _release_from_snap_zones(item: Node) -> void:
|
func _release_from_snap_zones(item: Node) -> void:
|
||||||
for zone in _station_snap_zones():
|
for zone in _station_snap_zones():
|
||||||
if zone.picked_up_object == item:
|
if zone.picked_up_object == item:
|
||||||
|
log_line("releasing %s from %s's snap zone (authority just granted elsewhere)" % [item.name, zone.get_parent().name])
|
||||||
zone.drop_object()
|
zone.drop_object()
|
||||||
|
# Make the zone forget the item as well. These zones are snap_mode=RANGE,
|
||||||
|
# so every frame they re-grab anything still listed in their grab area
|
||||||
|
# that can be picked up — and Jolt does not emit body_exited when let_go()
|
||||||
|
# switches the item's collision layer back out of the zone's mask, so the
|
||||||
|
# entry goes stale and never clears. The station then snatches the item
|
||||||
|
# straight back off the player who just took it, teleporting it home.
|
||||||
|
# Bringing it near again re-adds it properly (a held item is on the layer
|
||||||
|
# the zone watches), and releasing next to a station is handled
|
||||||
|
# explicitly by _try_snap_into_station.
|
||||||
|
if zone._object_in_grab_area.has(item):
|
||||||
|
zone._object_in_grab_area.erase(item)
|
||||||
|
|
||||||
|
|
||||||
# Snap the item into the nearest empty station snap zone within grab range.
|
# Snap the item into the nearest empty station snap zone within grab range.
|
||||||
|
#
|
||||||
|
# Called deferred from _do_release_item_authority: XRToolsFunctionPickup's own
|
||||||
|
# "grab an item out of a snap zone" path calls zone.drop_object() BEFORE it
|
||||||
|
# calls pick_up() on the hand's behalf. drop_object()'s let_go() synchronously
|
||||||
|
# fires the pickable's `dropped` signal, which (via NetPickable) lands here —
|
||||||
|
# if this ran synchronously it would immediately re-snap the item into the
|
||||||
|
# very same zone it's still physically inside, stealing it away before the
|
||||||
|
# hand's own pick_up() call (later in the same call stack) ever runs. That
|
||||||
|
# leaves XRToolsFunctionPickup.picked_up_object pointing at an item whose
|
||||||
|
# _grab_driver actually belongs to the zone — a stale reference that crashes
|
||||||
|
# (null _grab_driver) the next time a controller button is pressed. Deferring
|
||||||
|
# lets the hand's pick_up() go first; the is_picked_up() check below is a
|
||||||
|
# second guard in case the item gets grabbed for real before this runs.
|
||||||
func _try_snap_into_station(item: Node) -> void:
|
func _try_snap_into_station(item: Node) -> void:
|
||||||
if not (item is Node3D):
|
if not (item is Node3D):
|
||||||
return
|
return
|
||||||
|
if item.has_method("is_picked_up") and item.is_picked_up():
|
||||||
|
var by: Node = null
|
||||||
|
if item.has_method("get_picked_up_by"):
|
||||||
|
by = item.get_picked_up_by()
|
||||||
|
log_line("skipped snapping %s: already held by %s (grab-race guard)" % [item.name, str(by.get_path()) if by else "?"])
|
||||||
|
return
|
||||||
for zone in _station_snap_zones():
|
for zone in _station_snap_zones():
|
||||||
if is_instance_valid(zone.picked_up_object):
|
if is_instance_valid(zone.picked_up_object):
|
||||||
continue
|
continue
|
||||||
if zone.global_position.distance_to(item.global_position) <= zone.grab_distance:
|
if zone.global_position.distance_to(item.global_position) <= zone.grab_distance:
|
||||||
|
log_line("snapped %s into %s" % [item.name, zone.get_parent().name])
|
||||||
zone.pick_up_object(item)
|
zone.pick_up_object(item)
|
||||||
return
|
return
|
||||||
|
log_line("no station in range to snap %s into (or none empty)" % item.name)
|
||||||
|
|
||||||
|
|
||||||
# Server broadcasts an authority assignment so every peer agrees on who owns the
|
# Server broadcasts an authority assignment so every peer agrees on who owns the
|
||||||
@@ -183,6 +318,7 @@ func _set_item_authority(item_path: NodePath, peer: int) -> void:
|
|||||||
var item := get_node_or_null(item_path)
|
var item := get_node_or_null(item_path)
|
||||||
if not item:
|
if not item:
|
||||||
return
|
return
|
||||||
|
log_line("_set_item_authority: %s -> peer %d" % [item.name, peer])
|
||||||
item.set_multiplayer_authority(peer) # recursive: item + synchronizer + NetPickable
|
item.set_multiplayer_authority(peer) # recursive: item + synchronizer + NetPickable
|
||||||
var np := item.get_node_or_null("NetPickable")
|
var np := item.get_node_or_null("NetPickable")
|
||||||
if np:
|
if np:
|
||||||
@@ -190,6 +326,28 @@ func _set_item_authority(item_path: NodePath, peer: int) -> void:
|
|||||||
np.apply_held_state()
|
np.apply_held_state()
|
||||||
|
|
||||||
|
|
||||||
|
## Rejects peer's optimistic grab (the item was already legitimately held by
|
||||||
|
## someone else). Same self-RPC concern: if the rejected peer is the server
|
||||||
|
## itself, apply it directly rather than rpc_id-ing ourselves.
|
||||||
|
func _force_release_item_to(peer: int, item_path: NodePath) -> void:
|
||||||
|
if peer == 1:
|
||||||
|
_do_force_release(item_path)
|
||||||
|
else:
|
||||||
|
force_release_item.rpc_id(peer, item_path)
|
||||||
|
|
||||||
|
|
||||||
|
@rpc("authority", "reliable")
|
||||||
|
func force_release_item(item_path: NodePath) -> void:
|
||||||
|
_do_force_release(item_path)
|
||||||
|
|
||||||
|
|
||||||
|
func _do_force_release(item_path: NodePath) -> void:
|
||||||
|
log_line("force_release_item: dropping %s (server rejected our grab)" % str(item_path))
|
||||||
|
var item := get_node_or_null(item_path)
|
||||||
|
if item and item.has_method("drop"):
|
||||||
|
item.drop()
|
||||||
|
|
||||||
|
|
||||||
func is_server() -> bool:
|
func is_server() -> bool:
|
||||||
return is_online() and multiplayer.is_server()
|
return is_online() and multiplayer.is_server()
|
||||||
|
|
||||||
@@ -199,7 +357,7 @@ func is_server() -> bool:
|
|||||||
func is_online() -> bool:
|
func is_online() -> bool:
|
||||||
var p := multiplayer.multiplayer_peer
|
var p := multiplayer.multiplayer_peer
|
||||||
return p != null and not (p is OfflineMultiplayerPeer)
|
return p != null and not (p is OfflineMultiplayerPeer)
|
||||||
|
|
||||||
|
|
||||||
## True on the machine that owns authoritative world logic: the server when
|
## True on the machine that owns authoritative world logic: the server when
|
||||||
## online, or the single player when offline. Station logic and spawning should
|
## online, or the single player when offline. Station logic and spawning should
|
||||||
@@ -208,36 +366,68 @@ func owns_world() -> bool:
|
|||||||
return not is_online() or is_server()
|
return not is_online() or is_server()
|
||||||
|
|
||||||
|
|
||||||
# --- Station work-progress seam -------------------------------------------
|
## Called by the world scene once it's ready, passing its spawners. Must run
|
||||||
|
## before world_ready()/host()/join() on every peer so the custom spawn
|
||||||
## Reusable entry point for a client to contribute work to a station (e.g. a
|
## function is installed before any spawn packet can arrive.
|
||||||
## future chopping/gesture station). The client detects the gesture locally and
|
|
||||||
## calls this; the server validates and accumulates. Timer-driven stations like
|
|
||||||
## the Hob don't need it, but it is the drop-in seam for input-driven ones.
|
|
||||||
@rpc("any_peer", "reliable")
|
|
||||||
func submit_work(station_path: NodePath, amount: float) -> void:
|
|
||||||
if not is_server():
|
|
||||||
return
|
|
||||||
var station := get_node_or_null(station_path)
|
|
||||||
if station and station.has_method("add_work"):
|
|
||||||
station.add_work(multiplayer.get_remote_sender_id(), amount)
|
|
||||||
|
|
||||||
|
|
||||||
## Called by main.gd once the world scene is ready, passing its spawners.
|
|
||||||
func register_world(world: Node, players_spawner: MultiplayerSpawner, items_spawner: MultiplayerSpawner) -> void:
|
func register_world(world: Node, players_spawner: MultiplayerSpawner, items_spawner: MultiplayerSpawner) -> void:
|
||||||
_world = world
|
_world = world
|
||||||
_players_spawner = players_spawner
|
_players_spawner = players_spawner
|
||||||
_items_spawner = items_spawner
|
_items_spawner = items_spawner
|
||||||
|
_content_root = items_spawner.get_node(items_spawner.spawn_path) if items_spawner else world
|
||||||
if _items_spawner:
|
if _items_spawner:
|
||||||
_items_spawner.spawn_function = _spawn_item_from_data
|
_items_spawner.spawn_function = _spawn_item_from_data
|
||||||
log_line("World registered (players_spawner=%s items_spawner=%s)" % [str(players_spawner != null), str(items_spawner != null)])
|
log_line("World registered (players_spawner=%s items_spawner=%s)" % [str(players_spawner != null), str(items_spawner != null)])
|
||||||
|
|
||||||
|
|
||||||
|
## Called when the world scene goes away (disconnect, leaving the session) so
|
||||||
|
## the autoload doesn't hold stale/freed references across a scene reload.
|
||||||
|
func unregister_world() -> void:
|
||||||
|
_world = null
|
||||||
|
_content_root = null
|
||||||
|
_players_spawner = null
|
||||||
|
_items_spawner = null
|
||||||
|
|
||||||
|
|
||||||
|
## Returns the reason the last session ended (if any) and clears it. The menu
|
||||||
|
## pulls this on its own _ready() rather than depending on a live signal
|
||||||
|
## connection to a panel that doesn't exist yet when the session ends.
|
||||||
|
func take_status() -> String:
|
||||||
|
var s := last_status
|
||||||
|
last_status = ""
|
||||||
|
return s
|
||||||
|
|
||||||
|
|
||||||
## Called by main.gd after it has registered the world and connected its
|
## Called by main.gd after it has registered the world and connected its
|
||||||
## player_joined/left listeners. Kicks off any command-line driven session so
|
## player_joined/left listeners. Kicks off any menu- or command-line-driven
|
||||||
## that session signals never fire before the world is listening.
|
## session so that session signals never fire before the world is listening.
|
||||||
func world_ready() -> void:
|
func world_ready() -> void:
|
||||||
_handle_cmdline()
|
consume_pending_session()
|
||||||
|
|
||||||
|
|
||||||
|
# --- Menu-driven session request -------------------------------------------
|
||||||
|
|
||||||
|
# Set by the main menu's Host/Join buttons before switching to the multiplayer
|
||||||
|
# scene; consumed once that scene's world is ready to listen for session
|
||||||
|
# signals (avoids a race between change_scene_to_file and connection callbacks).
|
||||||
|
var pending_action := ""
|
||||||
|
var pending_ip := ""
|
||||||
|
|
||||||
|
func request_host() -> void:
|
||||||
|
pending_action = "host"
|
||||||
|
|
||||||
|
func request_join(ip: String) -> void:
|
||||||
|
pending_action = "join"
|
||||||
|
pending_ip = ip
|
||||||
|
|
||||||
|
func consume_pending_session() -> void:
|
||||||
|
if pending_action == "host":
|
||||||
|
pending_action = ""
|
||||||
|
host()
|
||||||
|
elif pending_action == "join":
|
||||||
|
pending_action = ""
|
||||||
|
join(pending_ip)
|
||||||
|
else:
|
||||||
|
_handle_cmdline()
|
||||||
|
|
||||||
|
|
||||||
# --- Session signal handlers ----------------------------------------------
|
# --- Session signal handlers ----------------------------------------------
|
||||||
@@ -260,11 +450,13 @@ func _on_connected_to_server() -> void:
|
|||||||
func _on_connection_failed() -> void:
|
func _on_connection_failed() -> void:
|
||||||
log_line("connection_failed")
|
log_line("connection_failed")
|
||||||
_go_offline()
|
_go_offline()
|
||||||
|
last_status = "Could not connect"
|
||||||
connection_failed.emit()
|
connection_failed.emit()
|
||||||
|
|
||||||
func _on_server_disconnected() -> void:
|
func _on_server_disconnected() -> void:
|
||||||
log_line("server_disconnected")
|
log_line("server_disconnected")
|
||||||
_go_offline()
|
_go_offline()
|
||||||
|
last_status = "Host disconnected"
|
||||||
session_ended.emit()
|
session_ended.emit()
|
||||||
|
|
||||||
|
|
||||||
@@ -282,7 +474,8 @@ func _on_player_absent(peer_id: int) -> void:
|
|||||||
# --- Command-line driven test bootstrap -----------------------------------
|
# --- Command-line driven test bootstrap -----------------------------------
|
||||||
|
|
||||||
func _handle_cmdline() -> void:
|
func _handle_cmdline() -> void:
|
||||||
var args := OS.get_cmdline_user_args()
|
SweetLogger.debug("->[]")
|
||||||
|
var args := OS.get_cmdline_args()
|
||||||
if args.has("--server"):
|
if args.has("--server"):
|
||||||
log_line("cmdline: --server")
|
log_line("cmdline: --server")
|
||||||
host()
|
host()
|
||||||
@@ -313,7 +506,7 @@ func log_line(s: String) -> void:
|
|||||||
if p != null and p.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED:
|
if p != null and p.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED:
|
||||||
id = multiplayer.get_unique_id()
|
id = multiplayer.get_unique_id()
|
||||||
var line := "[NET %d] %s" % [id, s]
|
var line := "[NET %d] %s" % [id, s]
|
||||||
print(line)
|
SweetLogger.info(line, [], "network_manager.gd", "log_line")
|
||||||
if _log_file:
|
if _log_file:
|
||||||
_log_file.store_line(line)
|
_log_file.store_line(line)
|
||||||
_log_file.flush()
|
_log_file.flush()
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
extends Node3D
|
|
||||||
|
|
||||||
## World-space main menu: hosts the 2D join_panel on an XRToolsViewport2DIn3D so
|
|
||||||
## the player can point at it with a controller laser. Re-emits the panel's
|
|
||||||
## intents; main.gd drives the actual networking.
|
|
||||||
|
|
||||||
signal host_pressed()
|
|
||||||
signal join_pressed(ip: String)
|
|
||||||
signal solo_pressed()
|
|
||||||
|
|
||||||
@onready var _vp: XRToolsViewport2DIn3D = $Viewport2Din3D
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
# The viewport instantiates its 2D scene during its own _ready; connect once
|
|
||||||
# that has happened.
|
|
||||||
_connect_scene.call_deferred()
|
|
||||||
|
|
||||||
|
|
||||||
func _connect_scene() -> void:
|
|
||||||
_vp.connect_scene_signal("host_pressed", func(): host_pressed.emit())
|
|
||||||
_vp.connect_scene_signal("join_pressed", func(ip): join_pressed.emit(ip))
|
|
||||||
_vp.connect_scene_signal("solo_pressed", func(): solo_pressed.emit())
|
|
||||||
|
|
||||||
|
|
||||||
func show_menu() -> void:
|
|
||||||
visible = true
|
|
||||||
|
|
||||||
|
|
||||||
func hide_menu() -> void:
|
|
||||||
visible = false
|
|
||||||
|
|
||||||
|
|
||||||
func set_status(text: String) -> void:
|
|
||||||
var scene := _vp.get_scene_instance()
|
|
||||||
if scene and scene.has_method("set_status"):
|
|
||||||
scene.set_status(text)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://1o2nca75po1f
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
[gd_scene load_steps=4 format=3]
|
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://Net/network_menu.gd" id="1_menu"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="2_vp"]
|
|
||||||
[ext_resource type="PackedScene" path="res://Net/join_panel.tscn" id="3_panel"]
|
|
||||||
|
|
||||||
[node name="NetworkMenu" type="Node3D"]
|
|
||||||
script = ExtResource("1_menu")
|
|
||||||
|
|
||||||
[node name="Viewport2Din3D" parent="." instance=ExtResource("2_vp")]
|
|
||||||
screen_size = Vector2(0.6, 0.4)
|
|
||||||
scene = ExtResource("3_panel")
|
|
||||||
viewport_size = Vector2(600, 400)
|
|
||||||
@@ -0,0 +1,155 @@
|
|||||||
|
extends Node
|
||||||
|
class_name WorldLayout
|
||||||
|
|
||||||
|
## Data-driven description of what's in the multiplayer world. The server (or
|
||||||
|
## the single machine, when offline) spawns every entry through
|
||||||
|
## NetworkManager.spawn_item() instead of baking these into the scene file, so
|
||||||
|
## a joining client receives them from the server rather than assuming its own
|
||||||
|
## copy of the scene matches. Swapping the contents of these two functions is
|
||||||
|
## the only change needed for a future varying/procedural layout.
|
||||||
|
##
|
||||||
|
## Positions below are transcribed verbatim from the previous baked layout in
|
||||||
|
## Scenes/multiPlayer.tscn so the starting world is unchanged.
|
||||||
|
|
||||||
|
|
||||||
|
func get_node_data(node):
|
||||||
|
# {"scene": "res://Stations/Hob.tscn", "name": "Hob",
|
||||||
|
# "xform": Transform3D(Basis(), Vector3(0.29336345, 0.8981018, -1.484)), "props": {}},
|
||||||
|
var data = {}
|
||||||
|
data["scene"] = node.scene_file_path
|
||||||
|
data["name"] = node.name
|
||||||
|
# global, not local: the copies are respawned under WorldContent, so an
|
||||||
|
# authored node that was nested inside another (JonScene parents Counter5
|
||||||
|
# under Counter3) would otherwise land in the wrong place.
|
||||||
|
data["xform"] = node.global_transform
|
||||||
|
data["props"] = {}
|
||||||
|
var scrip = node.get_script()
|
||||||
|
if scrip:
|
||||||
|
for i in scrip.get_script_property_list():
|
||||||
|
# Only authored configuration — i.e. @export vars, which are the ones
|
||||||
|
# the editor exposes. Plain script variables are live runtime state:
|
||||||
|
# copying those and replaying them into a fresh instance re-runs their
|
||||||
|
# setters before the node is in the tree, so any setter touching an
|
||||||
|
# @onready reference blows up (Table's _state calls into its progress
|
||||||
|
# bar, which is still null at that point).
|
||||||
|
if not (i.usage & PROPERTY_USAGE_EDITOR):
|
||||||
|
continue
|
||||||
|
if str(i["name"]).begins_with("_"):
|
||||||
|
continue
|
||||||
|
data["props"][i["name"]] = node.get(i["name"])
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
## The authored station nodes sitting in the current scene: anything instanced
|
||||||
|
## from res://Stations/. Exposed as nodes (not just data) because every peer has
|
||||||
|
## to remove these originals — the server replaces them with replicated copies,
|
||||||
|
## and a client that kept its own would end up showing two of everything.
|
||||||
|
func get_station_nodes() -> Array[Node]:
|
||||||
|
return _authored_nodes("res://Stations/", "StaticBody3D")
|
||||||
|
|
||||||
|
|
||||||
|
## Likewise for authored items. Containers/ counts as items too — plates and
|
||||||
|
## trays are things the player carries, and a client that never received one
|
||||||
|
## would have an incomplete world.
|
||||||
|
func get_item_nodes() -> Array[Node]:
|
||||||
|
var found := _authored_nodes("res://Items/", "XRToolsPickable")
|
||||||
|
found.append_array(_authored_nodes("res://Containers/", "XRToolsPickable"))
|
||||||
|
return found
|
||||||
|
|
||||||
|
|
||||||
|
func _authored_nodes(dir: String, type: String) -> Array[Node]:
|
||||||
|
var scenes := []
|
||||||
|
for file in ResourceLoader.list_directory(dir):
|
||||||
|
scenes.append(dir + file)
|
||||||
|
var found: Array[Node] = []
|
||||||
|
for node in get_tree().root.find_children("*", type, true, false):
|
||||||
|
if node.scene_file_path in scenes and not found.has(node):
|
||||||
|
found.append(node)
|
||||||
|
return found
|
||||||
|
|
||||||
|
|
||||||
|
func get_stations() -> Array[Dictionary]:
|
||||||
|
var data: Array[Dictionary] = []
|
||||||
|
for node in get_station_nodes():
|
||||||
|
data.append(get_node_data(node))
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
func get_items() -> Array[Dictionary]:
|
||||||
|
var data: Array[Dictionary] = []
|
||||||
|
for node in get_item_nodes():
|
||||||
|
data.append(get_node_data(node))
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static func get_stations_old() -> Array[Dictionary]:
|
||||||
|
return [
|
||||||
|
{"scene": "res://Stations/Hob.tscn", "name": "Hob",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(0.29336345, 0.8981018, -1.484)), "props": {}},
|
||||||
|
{"scene": "res://Stations/BurgerBunsDispenser.tscn", "name": "BurgerBunsDispenser",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(-1.832131, 0.40028095, -1.4813508)), "props": {}},
|
||||||
|
{"scene": "res://Stations/sink.tscn", "name": "Sink",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(1.3140475, 0.9061539, -1.4941733)), "props": {}},
|
||||||
|
{"scene": "res://Stations/dirt_station.tscn", "name": "DirtStation",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(2.0864775, 0.8981018, -1.244947)), "props": {}},
|
||||||
|
{"scene": "res://Stations/Counter.tscn", "name": "Counter",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(-0.7124918, 0.90304357, -1.4886917)), "props": {}},
|
||||||
|
{"scene": "res://Stations/Counter.tscn", "name": "Counter2",
|
||||||
|
"xform": Transform3D(Vector3(-4.371139e-08, 0.0, 1.0), Vector3(0.0, 1.0, 0.0), Vector3(-1.0, 0.0, -4.371139e-08), Vector3(-1.7648025, 0.90304357, -0.4458799)), "props": {}},
|
||||||
|
{"scene": "res://Stations/Counter.tscn", "name": "Counter3",
|
||||||
|
"xform": Transform3D(Vector3(-4.371139e-08, 0.0, 1.0), Vector3(0.0, 1.0, 0.0), Vector3(-1.0, 0.0, -4.371139e-08), Vector3(-1.7648025, 0.90304357, 0.55367994)), "props": {}},
|
||||||
|
{"scene": "res://Stations/Counter.tscn", "name": "Counter4",
|
||||||
|
"xform": Transform3D(Vector3(-4.371139e-08, 0.0, 1.0), Vector3(0.0, 1.0, 0.0), Vector3(-1.0, 0.0, -4.371139e-08), Vector3(-1.7648025, 0.90304357, 1.5539298)), "props": {}},
|
||||||
|
{"scene": "res://Stations/table.tscn", "name": "Table",
|
||||||
|
"xform": Transform3D(Basis(), Vector3(1.633146, 0.9030438, 1.1343781)),
|
||||||
|
"props": {
|
||||||
|
"initial_thinking_time": 8.0,
|
||||||
|
"initial_primary_time": 40.0,
|
||||||
|
"initial_friend_time": 3.0,
|
||||||
|
"initial_eating_time": 3.0,
|
||||||
|
}},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
static func get_items_old() -> Array[Dictionary]:
|
||||||
|
var items: Array[Dictionary] = []
|
||||||
|
|
||||||
|
items.append(_item("res://Items/BurgerBuns.tscn", "BurgerBuns", Vector3(-1.8162017, 1.6081157, -1.4714175)))
|
||||||
|
items.append(_item("res://Items/BurgerBuns.tscn", "BurgerBuns2", Vector3(-1.3596323, 1.4110342, -0.22482127)))
|
||||||
|
|
||||||
|
items.append(_item("res://Containers/plate.tscn", "Plate", Vector3(-1.5717233, 1.5454081, 1.5373346)))
|
||||||
|
items.append(_item("res://Containers/plate.tscn", "Plate2", Vector3(-1.5730225, 1.499024, 0.59790254)))
|
||||||
|
items.append(_item("res://Containers/plate.tscn", "Plate3", Vector3(-1.5818124, 1.499024, -0.4634577)))
|
||||||
|
|
||||||
|
items.append(_item("res://Items/burger.tscn", "burger", Vector3(0.6888188, 1.4195822, -1.7110313)))
|
||||||
|
items.append(_item("res://Items/burger.tscn", "burger2", Vector3(0.6931299, 1.5300478, -1.71225)))
|
||||||
|
items.append(_item("res://Items/burger.tscn", "burger3", Vector3(0.69027674, 1.4969791, -1.7210286)))
|
||||||
|
items.append(_item("res://Items/burger.tscn", "burger4", Vector3(0.69134104, 1.4543622, -1.7210286)))
|
||||||
|
|
||||||
|
items.append(_item("res://Items/hamburger.tscn", "Hamburger", Vector3(-1.9352558, 1.623975, 1.2447833)))
|
||||||
|
items.append(_item("res://Items/hamburger.tscn", "Hamburger2", Vector3(-1.9857153, 1.5329368, 0.9472374)))
|
||||||
|
items.append(_item("res://Items/hamburger.tscn", "Hamburger3", Vector3(-1.7201865, 1.5329367, 0.14773655)))
|
||||||
|
|
||||||
|
items.append(_item("res://Items/cooked_burger.tscn", "CookedBurger", Vector3(-0.30671906, 1.4131018, -1.0928738)))
|
||||||
|
items.append(_item("res://Items/cooked_burger.tscn", "CookedBurger2", Vector3(-0.30671906, 1.4496142, -1.0928738)))
|
||||||
|
items.append(_item("res://Items/cooked_burger.tscn", "CookedBurger3", Vector3(-1.3344773, 1.4398065, -0.7096845)))
|
||||||
|
items.append(_item("res://Items/cooked_burger.tscn", "CookedBurger4", Vector3(-0.30671906, 1.525444, -1.0928738)))
|
||||||
|
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject", Vector3(0.6225724, 1.4792972, -1.0473135)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject2", Vector3(0.6359743, 1.4639391, -1.1673055)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject3", Vector3(0.5142721, 1.4792972, -1.0473135)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject4", Vector3(0.5276739, 1.4639391, -1.1673055)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject5", Vector3(0.73287535, 1.4792972, -1.0473135)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject6", Vector3(0.7462772, 1.4639391, -1.1673055)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject7", Vector3(-1.3556751, 1.4792972, 0.28881657)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject8", Vector3(-1.3422732, 1.4639391, 0.16882455)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject9", Vector3(-1.4639754, 1.4792972, 0.28881657)))
|
||||||
|
items.append(_item("res://Items/PickupCube.tscn", "PickableObject10", Vector3(-1.4505737, 1.4639391, 0.16882455)))
|
||||||
|
|
||||||
|
return items
|
||||||
|
|
||||||
|
|
||||||
|
static func _item(scene: String, item_name: String, pos: Vector3) -> Dictionary:
|
||||||
|
return {"scene": scene, "name": item_name, "xform": Transform3D(Basis(), pos), "props": {}}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://donvkica3drtx
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
[gd_scene load_steps=7 format=3 uid="uid://cnetplayer0001"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://Player/player.gd" id="1_player"]
|
|
||||||
|
|
||||||
[sub_resource type="SceneReplicationConfig" id="Repl_player"]
|
|
||||||
properties/0/path = NodePath(".:head_xform")
|
|
||||||
properties/0/spawn = true
|
|
||||||
properties/0/replication_mode = 1
|
|
||||||
properties/1/path = NodePath(".:left_xform")
|
|
||||||
properties/1/spawn = true
|
|
||||||
properties/1/replication_mode = 1
|
|
||||||
properties/2/path = NodePath(".:right_xform")
|
|
||||||
properties/2/spawn = true
|
|
||||||
properties/2/replication_mode = 1
|
|
||||||
properties/3/path = NodePath(".:net_heartbeat")
|
|
||||||
properties/3/spawn = true
|
|
||||||
properties/3/replication_mode = 1
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="Mat_head"]
|
|
||||||
albedo_color = Color(0.85, 0.7, 0.55, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="Mesh_head"]
|
|
||||||
material = SubResource("Mat_head")
|
|
||||||
size = Vector3(0.18, 0.24, 0.16)
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="Mat_hand"]
|
|
||||||
albedo_color = Color(0.2, 0.5, 0.9, 1)
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="Mesh_hand"]
|
|
||||||
material = SubResource("Mat_hand")
|
|
||||||
size = Vector3(0.09, 0.05, 0.12)
|
|
||||||
|
|
||||||
[node name="Player" type="Node3D"]
|
|
||||||
script = ExtResource("1_player")
|
|
||||||
|
|
||||||
[node name="Avatar" type="Node3D" parent="."]
|
|
||||||
|
|
||||||
[node name="Head" type="MeshInstance3D" parent="Avatar"]
|
|
||||||
mesh = SubResource("Mesh_head")
|
|
||||||
|
|
||||||
[node name="LeftHand" type="MeshInstance3D" parent="Avatar"]
|
|
||||||
mesh = SubResource("Mesh_hand")
|
|
||||||
|
|
||||||
[node name="RightHand" type="MeshInstance3D" parent="Avatar"]
|
|
||||||
mesh = SubResource("Mesh_hand")
|
|
||||||
|
|
||||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
||||||
replication_config = SubResource("Repl_player")
|
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
extends Node3D
|
||||||
|
|
||||||
|
## Networked representation of one connected player. The owning peer's local
|
||||||
|
## XR rig (found via the "local_xr_origin" group) drives Head/LeftHand/
|
||||||
|
## RightHand each frame; the MultiplayerSynchronizer replicates those
|
||||||
|
## transforms so every other peer sees a matching avatar.
|
||||||
|
|
||||||
|
@onready var _head: Node3D = $Head
|
||||||
|
@onready var _left_hand: Node3D = $LeftHand
|
||||||
|
@onready var _right_hand: Node3D = $RightHand
|
||||||
|
|
||||||
|
var _local_camera: Node3D
|
||||||
|
var _local_left_hand: Node3D
|
||||||
|
var _local_right_hand: Node3D
|
||||||
|
|
||||||
|
|
||||||
|
func _enter_tree() -> void:
|
||||||
|
# MultiplayerSynchronizer resolves authority when this node enters the
|
||||||
|
# tree, so authority must be set here rather than in _ready(), or the
|
||||||
|
# first synced frames go the wrong direction.
|
||||||
|
set_multiplayer_authority(str(name).to_int())
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
# LeftHand/RightHand are the full godot-xr-tools glove scenes, whose root
|
||||||
|
# node carries hand.gd (XRToolsHand). That script sets top_level = true
|
||||||
|
# and every physics frame does global_transform = get_parent().
|
||||||
|
# global_transform * offset — i.e. it actively repositions itself to
|
||||||
|
# track a live XRController3D parent. Here the parent is just this
|
||||||
|
# NetPlayer node, not a controller, so left running it fights (and mostly
|
||||||
|
# wins, since it runs every physics tick regardless of our own _process)
|
||||||
|
# against both the local authority's transform copy below and the
|
||||||
|
# replicated values on other peers — the exact "hands stuck near origin,
|
||||||
|
# only occasionally correct" symptom. Disable it everywhere; nothing else
|
||||||
|
# in that script matters here since _controller is always null without a
|
||||||
|
# real controller ancestor (grip/trigger animation already no-ops).
|
||||||
|
_left_hand.set_physics_process(false)
|
||||||
|
_right_hand.set_physics_process(false)
|
||||||
|
|
||||||
|
if is_multiplayer_authority():
|
||||||
|
var origin := get_tree().get_first_node_in_group("local_xr_origin")
|
||||||
|
if origin:
|
||||||
|
_local_camera = origin.get_node_or_null("XRCamera3D")
|
||||||
|
_local_left_hand = origin.get_node_or_null("XRControllerLeftHand")
|
||||||
|
_local_right_hand = origin.get_node_or_null("XRControllerRightHand")
|
||||||
|
# Every peer's rig is baked at the same spot in the scene; spread
|
||||||
|
# joiners out along X so they don't start stacked on top of each
|
||||||
|
# other. Peer ids from ENet are large effectively-random 32-bit
|
||||||
|
# numbers, so this must be bounded, AND kept well within the
|
||||||
|
# floor's actual footprint (15x15, so ~7.5 units from center) —
|
||||||
|
# a previous version used up to 12 units and could place a
|
||||||
|
# joining player off the edge of the floor.
|
||||||
|
var peer_id := str(name).to_int()
|
||||||
|
if peer_id != 1:
|
||||||
|
var slot := absi(peer_id) % 4
|
||||||
|
origin.position += Vector3((slot - 1.5) * 1.2, 0, 0)
|
||||||
|
# Don't render your own floating head/hands from the inside.
|
||||||
|
_head.visible = false
|
||||||
|
_left_hand.visible = false
|
||||||
|
_right_hand.visible = false
|
||||||
|
else:
|
||||||
|
set_process(false)
|
||||||
|
|
||||||
|
|
||||||
|
func _process(_delta: float) -> void:
|
||||||
|
if _local_camera:
|
||||||
|
_head.global_transform = _local_camera.global_transform
|
||||||
|
if _local_left_hand:
|
||||||
|
_left_hand.global_transform = _local_left_hand.global_transform
|
||||||
|
if _local_right_hand:
|
||||||
|
_right_hand.global_transform = _local_right_hand.global_transform
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bncuxh7j7ix5q
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
[gd_scene format=3 uid="uid://c58ns7csdahjy"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bncuxh7j7ix5q" path="res://Player/net_player.gd" id="1_np001"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bq86r4yll8po" path="res://addons/godot-xr-tools/hands/scenes/lowpoly/left_fullglove_low.tscn" id="2_np002"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xqimcf20s2jp" path="res://addons/godot-xr-tools/hands/scenes/lowpoly/right_fullglove_low.tscn" id="3_np003"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_np004"]
|
||||||
|
radius = 0.09
|
||||||
|
height = 0.22
|
||||||
|
|
||||||
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_np005"]
|
||||||
|
properties/0/path = NodePath("Head:position")
|
||||||
|
properties/0/spawn = false
|
||||||
|
properties/0/replication_mode = 1
|
||||||
|
properties/1/path = NodePath("Head:quaternion")
|
||||||
|
properties/1/spawn = false
|
||||||
|
properties/1/replication_mode = 1
|
||||||
|
properties/2/path = NodePath("LeftHand:position")
|
||||||
|
properties/2/spawn = false
|
||||||
|
properties/2/replication_mode = 1
|
||||||
|
properties/3/path = NodePath("LeftHand:quaternion")
|
||||||
|
properties/3/spawn = false
|
||||||
|
properties/3/replication_mode = 1
|
||||||
|
properties/4/path = NodePath("RightHand:position")
|
||||||
|
properties/4/spawn = false
|
||||||
|
properties/4/replication_mode = 1
|
||||||
|
properties/5/path = NodePath("RightHand:quaternion")
|
||||||
|
properties/5/spawn = false
|
||||||
|
properties/5/replication_mode = 1
|
||||||
|
|
||||||
|
[node name="NetPlayer" type="Node3D" unique_id=70287099]
|
||||||
|
script = ExtResource("1_np001")
|
||||||
|
|
||||||
|
[node name="Head" type="MeshInstance3D" parent="." unique_id=56588259]
|
||||||
|
mesh = SubResource("CapsuleMesh_np004")
|
||||||
|
|
||||||
|
[node name="LeftHand" parent="." unique_id=1703673184 instance=ExtResource("2_np002")]
|
||||||
|
|
||||||
|
[node name="RightHand" parent="." unique_id=325341465 instance=ExtResource("3_np003")]
|
||||||
|
|
||||||
|
[node name="Sync" type="MultiplayerSynchronizer" parent="." unique_id=529459963]
|
||||||
|
replication_interval = 0.033
|
||||||
|
replication_config = SubResource("SceneReplicationConfig_np005")
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
extends Node3D
|
|
||||||
|
|
||||||
## One instance per connected peer. The owning peer is the multiplayer
|
|
||||||
## authority. The local (authority) player builds the full XR rig from
|
|
||||||
## XROrigin.tscn and feeds its head/hand poses into synced properties; remote
|
|
||||||
## players show a lightweight avatar driven by those synced poses.
|
|
||||||
|
|
||||||
const RIG_SCENE := preload("res://XROrigin.tscn")
|
|
||||||
|
|
||||||
# Synced avatar pose. Authority writes these from the XR trackers each frame;
|
|
||||||
# remotes read them onto the Avatar. net_heartbeat is a monotonic counter used
|
|
||||||
# to confirm replication is live (also handy for debugging).
|
|
||||||
@export var head_xform: Transform3D = Transform3D.IDENTITY
|
|
||||||
@export var left_xform: Transform3D = Transform3D.IDENTITY
|
|
||||||
@export var right_xform: Transform3D = Transform3D.IDENTITY
|
|
||||||
@export var net_heartbeat: int = 0
|
|
||||||
|
|
||||||
var _rig: Node3D
|
|
||||||
var _camera: Node3D
|
|
||||||
var _left: Node3D
|
|
||||||
var _right: Node3D
|
|
||||||
var _is_local := false
|
|
||||||
|
|
||||||
@onready var _avatar: Node3D = $Avatar
|
|
||||||
@onready var _avatar_head: Node3D = $Avatar/Head
|
|
||||||
@onready var _avatar_left: Node3D = $Avatar/LeftHand
|
|
||||||
@onready var _avatar_right: Node3D = $Avatar/RightHand
|
|
||||||
|
|
||||||
|
|
||||||
func _enter_tree() -> void:
|
|
||||||
# The spawner names each player by its owning peer id.
|
|
||||||
set_multiplayer_authority(str(name).to_int())
|
|
||||||
|
|
||||||
|
|
||||||
# (replication config is authored in Player.tscn's MultiplayerSynchronizer)
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
_is_local = is_multiplayer_authority()
|
|
||||||
if _is_local:
|
|
||||||
_setup_local()
|
|
||||||
else:
|
|
||||||
_setup_remote()
|
|
||||||
if Engine.has_singleton("NetworkManager") or get_node_or_null("/root/NetworkManager"):
|
|
||||||
NetworkManager.log_line("Player %s ready (authority=%d local=%s)" % [name, get_multiplayer_authority(), str(_is_local)])
|
|
||||||
|
|
||||||
|
|
||||||
func _setup_local() -> void:
|
|
||||||
# We see through the headset; hide our own avatar mesh.
|
|
||||||
_avatar.visible = false
|
|
||||||
_rig = RIG_SCENE.instantiate()
|
|
||||||
add_child(_rig)
|
|
||||||
_camera = _rig.get_node_or_null("XRCamera3D")
|
|
||||||
_left = _rig.get_node_or_null("XRControllerLeftHand")
|
|
||||||
_right = _rig.get_node_or_null("XRControllerRightHand")
|
|
||||||
_enable_xr()
|
|
||||||
|
|
||||||
|
|
||||||
func _enable_xr() -> void:
|
|
||||||
var xr := XRServer.find_interface("OpenXR")
|
|
||||||
if xr and xr.is_initialized():
|
|
||||||
get_viewport().use_xr = true
|
|
||||||
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
|
|
||||||
|
|
||||||
|
|
||||||
func _setup_remote() -> void:
|
|
||||||
_avatar.visible = true
|
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta: float) -> void:
|
|
||||||
if _is_local:
|
|
||||||
if _camera:
|
|
||||||
head_xform = _camera.global_transform
|
|
||||||
left_xform = _left.global_transform
|
|
||||||
right_xform = _right.global_transform
|
|
||||||
net_heartbeat += 1
|
|
||||||
else:
|
|
||||||
_avatar_head.global_transform = head_xform
|
|
||||||
_avatar_left.global_transform = left_xform
|
|
||||||
_avatar_right.global_transform = right_xform
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://ndrfa2xle033
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$"..".visible = false
|
||||||
|
|
||||||
|
# Listen for the game over signal from GameManager
|
||||||
|
Signals.game_state_changed.connect(_on_game_state_changed)
|
||||||
|
|
||||||
|
func _on_game_state_changed(new_state: GameManager.GameState) -> void:
|
||||||
|
if new_state == GameManager.GameState.GAME_OVER:
|
||||||
|
$"..".visible = true
|
||||||
|
else:
|
||||||
|
$"..".visible = false
|
||||||
@@ -0,0 +1,214 @@
|
|||||||
|
[gd_scene format=3 uid="uid://j5s5wus7tuhb"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bq86r4yll8po" path="res://addons/godot-xr-tools/hands/scenes/lowpoly/left_fullglove_low.tscn" id="1_jr1t4"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xqimcf20s2jp" path="res://addons/godot-xr-tools/hands/scenes/lowpoly/right_fullglove_low.tscn" id="2_gshht"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bl2nuu3qhlb5k" path="res://addons/godot-xr-tools/functions/movement_direct.tscn" id="2_q1xvu"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b4ysuy43poobf" path="res://addons/godot-xr-tools/functions/function_pickup.tscn" id="3_rd8py"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://diyu06cw06syv" path="res://addons/godot-xr-tools/player/player_body.tscn" id="4_6xr3x"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b6bk2pj8vbj28" path="res://addons/godot-xr-tools/functions/movement_turn.tscn" id="4_rd8py"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cmxe1av5nsxyq" path="res://UI/shop_menu_3d.tscn" id="5_7rrtu"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cqhw276realc" path="res://addons/godot-xr-tools/functions/function_pointer.tscn" id="6_ptr"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bjcxf427un2wp" path="res://addons/godot-xr-tools/player/poke/poke.tscn" id="7_1fmci"]
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1fmci"]
|
||||||
|
animation = &"Grip"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_itrmp"]
|
||||||
|
animation = &"Grip"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_nrfrd"]
|
||||||
|
filter_enabled = true
|
||||||
|
filters = ["Armature/Skeleton3D:Little_Distal_L", "Armature/Skeleton3D:Little_Intermediate_L", "Armature/Skeleton3D:Little_Metacarpal_L", "Armature/Skeleton3D:Little_Proximal_L", "Armature/Skeleton3D:Middle_Distal_L", "Armature/Skeleton3D:Middle_Intermediate_L", "Armature/Skeleton3D:Middle_Metacarpal_L", "Armature/Skeleton3D:Middle_Proximal_L", "Armature/Skeleton3D:Ring_Distal_L", "Armature/Skeleton3D:Ring_Intermediate_L", "Armature/Skeleton3D:Ring_Metacarpal_L", "Armature/Skeleton3D:Ring_Proximal_L", "Armature/Skeleton3D:Thumb_Distal_L", "Armature/Skeleton3D:Thumb_Metacarpal_L", "Armature/Skeleton3D:Thumb_Proximal_L", "Armature/Skeleton:Little_Distal_L", "Armature/Skeleton:Little_Intermediate_L", "Armature/Skeleton:Little_Proximal_L", "Armature/Skeleton:Middle_Distal_L", "Armature/Skeleton:Middle_Intermediate_L", "Armature/Skeleton:Middle_Proximal_L", "Armature/Skeleton:Ring_Distal_L", "Armature/Skeleton:Ring_Intermediate_L", "Armature/Skeleton:Ring_Proximal_L", "Armature/Skeleton:Thumb_Distal_L", "Armature/Skeleton:Thumb_Proximal_L"]
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_73fu8"]
|
||||||
|
animation = &"Grip 5"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_ouruy"]
|
||||||
|
filter_enabled = true
|
||||||
|
filters = ["Armature/Skeleton3D:Index_Distal_L", "Armature/Skeleton3D:Index_Intermediate_L", "Armature/Skeleton3D:Index_Metacarpal_L", "Armature/Skeleton3D:Index_Proximal_L", "Armature/Skeleton:Index_Distal_L", "Armature/Skeleton:Index_Intermediate_L", "Armature/Skeleton:Index_Proximal_L"]
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_i0gvw"]
|
||||||
|
graph_offset = Vector2(-536, 11)
|
||||||
|
nodes/ClosedHand1/node = SubResource("AnimationNodeAnimation_1fmci")
|
||||||
|
nodes/ClosedHand1/position = Vector2(-600, 300)
|
||||||
|
nodes/ClosedHand2/node = SubResource("AnimationNodeAnimation_itrmp")
|
||||||
|
nodes/ClosedHand2/position = Vector2(-360, 300)
|
||||||
|
nodes/Grip/node = SubResource("AnimationNodeBlend2_nrfrd")
|
||||||
|
nodes/Grip/position = Vector2(0, 20)
|
||||||
|
nodes/OpenHand/node = SubResource("AnimationNodeAnimation_73fu8")
|
||||||
|
nodes/OpenHand/position = Vector2(-600, 100)
|
||||||
|
nodes/Trigger/node = SubResource("AnimationNodeBlend2_ouruy")
|
||||||
|
nodes/Trigger/position = Vector2(-360, 20)
|
||||||
|
node_connections = [&"output", 0, &"Grip", &"Grip", 0, &"Trigger", &"Grip", 1, &"ClosedHand2", &"Trigger", 0, &"OpenHand", &"Trigger", 1, &"ClosedHand1"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1fmci"]
|
||||||
|
transparency = 1
|
||||||
|
albedo_color = Color(1, 1, 1, 0.5882353)
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_5mmou"]
|
||||||
|
animation = &"Grip"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_yfij0"]
|
||||||
|
animation = &"Grip"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_2ebvs"]
|
||||||
|
filter_enabled = true
|
||||||
|
filters = ["Armature/Skeleton3D:Little_Distal_R", "Armature/Skeleton3D:Little_Intermediate_R", "Armature/Skeleton3D:Little_Metacarpal_R", "Armature/Skeleton3D:Little_Proximal_R", "Armature/Skeleton3D:Middle_Distal_R", "Armature/Skeleton3D:Middle_Intermediate_R", "Armature/Skeleton3D:Middle_Metacarpal_R", "Armature/Skeleton3D:Middle_Proximal_R", "Armature/Skeleton3D:Ring_Distal_R", "Armature/Skeleton3D:Ring_Intermediate_R", "Armature/Skeleton3D:Ring_Metacarpal_R", "Armature/Skeleton3D:Ring_Proximal_R", "Armature/Skeleton3D:Thumb_Distal_R", "Armature/Skeleton3D:Thumb_Metacarpal_R", "Armature/Skeleton3D:Thumb_Proximal_R", "Armature/Skeleton:Little_Distal_R", "Armature/Skeleton:Little_Intermediate_R", "Armature/Skeleton:Little_Proximal_R", "Armature/Skeleton:Middle_Distal_R", "Armature/Skeleton:Middle_Intermediate_R", "Armature/Skeleton:Middle_Proximal_R", "Armature/Skeleton:Ring_Distal_R", "Armature/Skeleton:Ring_Intermediate_R", "Armature/Skeleton:Ring_Proximal_R", "Armature/Skeleton:Thumb_Distal_R", "Armature/Skeleton:Thumb_Proximal_R"]
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_l8v2a"]
|
||||||
|
animation = &"Grip 5"
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_qpjda"]
|
||||||
|
filter_enabled = true
|
||||||
|
filters = ["Armature/Skeleton3D:Index_Distal_R", "Armature/Skeleton3D:Index_Intermediate_R", "Armature/Skeleton3D:Index_Metacarpal_R", "Armature/Skeleton3D:Index_Proximal_R", "Armature/Skeleton:Index_Distal_R", "Armature/Skeleton:Index_Intermediate_R", "Armature/Skeleton:Index_Proximal_R"]
|
||||||
|
|
||||||
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_37hbl"]
|
||||||
|
graph_offset = Vector2(-552.664, 107.301)
|
||||||
|
nodes/ClosedHand1/node = SubResource("AnimationNodeAnimation_5mmou")
|
||||||
|
nodes/ClosedHand1/position = Vector2(-600, 300)
|
||||||
|
nodes/ClosedHand2/node = SubResource("AnimationNodeAnimation_yfij0")
|
||||||
|
nodes/ClosedHand2/position = Vector2(-360, 300)
|
||||||
|
nodes/Grip/node = SubResource("AnimationNodeBlend2_2ebvs")
|
||||||
|
nodes/Grip/position = Vector2(0, 40)
|
||||||
|
nodes/OpenHand/node = SubResource("AnimationNodeAnimation_l8v2a")
|
||||||
|
nodes/OpenHand/position = Vector2(-600, 100)
|
||||||
|
nodes/Trigger/node = SubResource("AnimationNodeBlend2_qpjda")
|
||||||
|
nodes/Trigger/position = Vector2(-360, 40)
|
||||||
|
node_connections = [&"output", 0, &"Grip", &"Grip", 0, &"Trigger", &"Grip", 1, &"ClosedHand2", &"Trigger", 0, &"OpenHand", &"Trigger", 1, &"ClosedHand1"]
|
||||||
|
|
||||||
|
[node name="XROrigin3D" type="XROrigin3D" unique_id=2055526621]
|
||||||
|
|
||||||
|
[node name="XRCamera3D" type="XRCamera3D" parent="." unique_id=983614103]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.49626195, 0)
|
||||||
|
|
||||||
|
[node name="XRControllerLeftHand" type="XRController3D" parent="." unique_id=1171100950]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0, 0)
|
||||||
|
tracker = &"left_hand"
|
||||||
|
|
||||||
|
[node name="LeftHand" parent="XRControllerLeftHand" unique_id=1805508372 instance=ExtResource("1_jr1t4")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
|
[node name="Hand_low_L" parent="XRControllerLeftHand/LeftHand" index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.01, 0, 0.05)
|
||||||
|
|
||||||
|
[node name="Skeleton3D" parent="XRControllerLeftHand/LeftHand/Hand_low_L/Armature" index="0" unique_id=242151480]
|
||||||
|
bones/1/rotation = Quaternion(0.323537, -2.5658142e-05, -0.027220426, 0.9458239)
|
||||||
|
bones/2/rotation = Quaternion(-0.09044407, -0.04151748, -0.16629349, 0.98104167)
|
||||||
|
bones/3/rotation = Quaternion(-0.04661986, 0.02097099, 0.010327632, 0.9986392)
|
||||||
|
bones/5/rotation = Quaternion(-0.0012845465, -0.011608094, -0.016825877, 0.99979025)
|
||||||
|
bones/6/rotation = Quaternion(0.10292491, -0.009932083, -0.007944166, 0.9946078)
|
||||||
|
bones/7/rotation = Quaternion(-0.012859, -0.023610815, -0.32325828, 0.9459289)
|
||||||
|
bones/8/rotation = Quaternion(0.012057539, -0.009291937, -0.24747224, 0.96877545)
|
||||||
|
bones/10/rotation = Quaternion(-0.035753887, -0.0004000325, 0.0063676415, 0.9993403)
|
||||||
|
bones/11/rotation = Quaternion(-0.0026496367, -0.0011447113, -0.12599176, 0.9920271)
|
||||||
|
bones/12/rotation = Quaternion(0.039422527, 0.0019339261, -0.22807404, 0.97284347)
|
||||||
|
bones/13/rotation = Quaternion(-0.012339468, -0.008812943, -0.28066906, 0.9596848)
|
||||||
|
bones/15/rotation = Quaternion(-0.070265576, 0.010190836, -0.024330735, 0.9971795)
|
||||||
|
bones/16/rotation = Quaternion(-0.032063447, -0.002236244, -0.06863657, 0.99712384)
|
||||||
|
bones/17/rotation = Quaternion(0.025345208, 0.008124622, -0.2490055, 0.9681363)
|
||||||
|
bones/18/rotation = Quaternion(0.0025223217, 0.007880732, -0.2432038, 0.9699399)
|
||||||
|
bones/20/rotation = Quaternion(-0.09173688, 0.020302717, -0.010182976, 0.9955242)
|
||||||
|
bones/21/rotation = Quaternion(-0.06251818, -0.00022572002, -0.115392834, 0.99135065)
|
||||||
|
bones/22/rotation = Quaternion(0.058578636, 0.021648303, -0.26990518, 0.9608596)
|
||||||
|
bones/23/rotation = Quaternion(0.006871769, -0.0035727466, -0.21195254, 0.97724926)
|
||||||
|
|
||||||
|
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="XRControllerLeftHand/LeftHand/Hand_low_L/Armature/Skeleton3D" index="1" unique_id=774348011]
|
||||||
|
transform = Transform3D(0.5408296, 0.8408128, -0.023173608, -0.08262672, 0.08052427, 0.99332196, 0.83706397, -0.5353032, 0.11302349, 0.039901964, 0.040282845, -0.15009598)
|
||||||
|
bone_name = "Index_Tip_L"
|
||||||
|
bone_idx = 9
|
||||||
|
|
||||||
|
[node name="Poke" parent="XRControllerLeftHand/LeftHand/Hand_low_L/Armature/Skeleton3D/BoneAttachment3D" unique_id=259928841 instance=ExtResource("7_1fmci")]
|
||||||
|
|
||||||
|
[node name="AnimationTree" parent="XRControllerLeftHand/LeftHand" index="1"]
|
||||||
|
tree_root = SubResource("AnimationNodeBlendTree_i0gvw")
|
||||||
|
|
||||||
|
[node name="MovementDirect" parent="XRControllerLeftHand" unique_id=1865515938 instance=ExtResource("2_q1xvu")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.009340696, -0.0074635968, 0.024033919)
|
||||||
|
strafe = true
|
||||||
|
|
||||||
|
[node name="FunctionPickup" parent="XRControllerLeftHand" unique_id=2133415351 instance=ExtResource("3_rd8py")]
|
||||||
|
grab_collision_mask = 327748
|
||||||
|
|
||||||
|
[node name="FunctionPointer" parent="XRControllerLeftHand" unique_id=315304316 instance=ExtResource("6_ptr")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.02, 0.05, -0.1)
|
||||||
|
show_laser = 2
|
||||||
|
laser_length = 1
|
||||||
|
laser_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
laser_hit_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
show_target = true
|
||||||
|
target_radius = 0.009
|
||||||
|
target_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
|
||||||
|
[node name="ShopMenu3D" parent="XRControllerLeftHand" unique_id=331240263 instance=ExtResource("5_7rrtu")]
|
||||||
|
transform = Transform3D(0.17921828, 0.016751308, -0.00045015282, -0.0125175975, 0.13704088, 0.116030626, 0.011140855, -0.11549542, 0.13761066, 0.27515364, 0.031010807, -0.013297826)
|
||||||
|
|
||||||
|
[node name="XRControllerRightHand" type="XRController3D" parent="." unique_id=202756852]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0)
|
||||||
|
tracker = &"right_hand"
|
||||||
|
|
||||||
|
[node name="RightHand" parent="XRControllerRightHand" unique_id=1112462503 instance=ExtResource("2_gshht")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
||||||
|
|
||||||
|
[node name="Hand_low_R" parent="XRControllerRightHand/RightHand" index="0"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.01, 0, 0.05)
|
||||||
|
|
||||||
|
[node name="Skeleton3D" parent="XRControllerRightHand/RightHand/Hand_low_R/Armature" index="0" unique_id=976194013]
|
||||||
|
bones/1/rotation = Quaternion(0.323537, 2.5658142e-05, 0.027220426, 0.9458239)
|
||||||
|
bones/2/rotation = Quaternion(-0.09044407, 0.04151748, 0.16629349, 0.98104167)
|
||||||
|
bones/3/rotation = Quaternion(-0.04661986, -0.020970985, -0.010327632, 0.9986392)
|
||||||
|
bones/5/rotation = Quaternion(-0.0012845465, 0.011608096, 0.01682588, 0.99979025)
|
||||||
|
bones/6/rotation = Quaternion(0.10292492, 0.009932085, 0.007944188, 0.9946078)
|
||||||
|
bones/7/rotation = Quaternion(-0.012859004, 0.023610815, 0.32325834, 0.94592875)
|
||||||
|
bones/8/rotation = Quaternion(0.012057537, 0.0092919255, 0.24747224, 0.96877545)
|
||||||
|
bones/10/rotation = Quaternion(-0.035753887, 0.00040003238, -0.0063676336, 0.9993403)
|
||||||
|
bones/11/rotation = Quaternion(-0.0026496367, 0.0011447114, 0.1259918, 0.9920271)
|
||||||
|
bones/12/rotation = Quaternion(0.03942253, -0.0019339275, 0.2280741, 0.97284347)
|
||||||
|
bones/13/rotation = Quaternion(-0.012339467, 0.008812944, 0.28066906, 0.9596848)
|
||||||
|
bones/15/rotation = Quaternion(-0.07026557, -0.010190836, 0.024330745, 0.99717957)
|
||||||
|
bones/16/rotation = Quaternion(-0.032063447, 0.002236245, 0.06863657, 0.99712384)
|
||||||
|
bones/17/rotation = Quaternion(0.025345206, -0.00812462, 0.24900547, 0.9681363)
|
||||||
|
bones/18/rotation = Quaternion(0.0025223275, -0.007880732, 0.24320383, 0.9699399)
|
||||||
|
bones/20/rotation = Quaternion(-0.09173688, -0.020302719, 0.010182976, 0.9955242)
|
||||||
|
bones/21/rotation = Quaternion(-0.06251817, 0.00022572096, 0.115392834, 0.99135065)
|
||||||
|
bones/22/rotation = Quaternion(0.058578644, -0.021648303, 0.26990518, 0.9608596)
|
||||||
|
bones/23/rotation = Quaternion(0.0068717655, 0.0035727452, 0.21195254, 0.97724926)
|
||||||
|
|
||||||
|
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="XRControllerRightHand/RightHand/Hand_low_R/Armature/Skeleton3D" index="1" unique_id=497290142]
|
||||||
|
transform = Transform3D(0.5408295, -0.8408129, 0.023173586, 0.08262676, 0.08052423, 0.99332196, -0.83706397, -0.53530306, 0.11302352, -0.03990197, 0.040282845, -0.15009597)
|
||||||
|
bone_name = "Index_Tip_R"
|
||||||
|
bone_idx = 9
|
||||||
|
|
||||||
|
[node name="Poke" parent="XRControllerRightHand/RightHand/Hand_low_R/Armature/Skeleton3D/BoneAttachment3D" unique_id=303927399 instance=ExtResource("7_1fmci")]
|
||||||
|
|
||||||
|
[node name="AnimationTree" parent="XRControllerRightHand/RightHand" index="1"]
|
||||||
|
tree_root = SubResource("AnimationNodeBlendTree_37hbl")
|
||||||
|
|
||||||
|
[node name="MovementTurn" parent="XRControllerRightHand" unique_id=154529119 instance=ExtResource("4_rd8py")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0074635968, 0.024033919)
|
||||||
|
turn_mode = 2
|
||||||
|
smooth_turn_speed = 3.5
|
||||||
|
|
||||||
|
[node name="FunctionPickup" parent="XRControllerRightHand" unique_id=1876210450 instance=ExtResource("3_rd8py")]
|
||||||
|
grab_collision_mask = 327748
|
||||||
|
|
||||||
|
[node name="FunctionPointer" parent="XRControllerRightHand" unique_id=2017919314 instance=ExtResource("6_ptr")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.02, 0.05, -0.1)
|
||||||
|
show_laser = 2
|
||||||
|
laser_length = 1
|
||||||
|
laser_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
laser_hit_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
show_target = true
|
||||||
|
target_radius = 0.009
|
||||||
|
target_material = SubResource("StandardMaterial3D_1fmci")
|
||||||
|
|
||||||
|
[node name="ShopMenu3D" parent="XRControllerRightHand" unique_id=246744456 instance=ExtResource("5_7rrtu")]
|
||||||
|
transform = Transform3D(0.17912053, -0.017761359, -0.0006130421, 0.014117808, 0.138435, 0.11417722, -0.010794867, -0.11366743, 0.13915166, -0.11845571, 0.038174443, -0.038154215)
|
||||||
|
|
||||||
|
[node name="PlayerBody" parent="." unique_id=1444632058 instance=ExtResource("4_6xr3x")]
|
||||||
|
collision_mask = 1017
|
||||||
|
player_calibrate_height = false
|
||||||
|
|
||||||
|
[editable path="XRControllerLeftHand/LeftHand"]
|
||||||
|
[editable path="XRControllerLeftHand/LeftHand/Hand_low_L"]
|
||||||
|
[editable path="XRControllerRightHand/RightHand"]
|
||||||
|
[editable path="XRControllerRightHand/RightHand/Hand_low_R"]
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
extends Node
|
||||||
|
class_name BuildModeController
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
Signals.game_state_changed.connect(_on_game_state_changed)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_game_state_changed(new_state: GameManager.GameState) -> void:
|
||||||
|
SweetLogger.info("Game state changed to {0}", [GameManager.GameState.keys()[new_state]], "build_mode_controller.gd", "_on_game_state_changed")
|
||||||
|
if new_state == GameManager.GameState.BUILDING:
|
||||||
|
despawn_unheld_pickables()
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
return
|
||||||
|
if new_state == GameManager.GameState.BUILDING:
|
||||||
|
_set_stations_enabled(false)
|
||||||
|
elif new_state == GameManager.GameState.RUNNING:
|
||||||
|
_set_stations_enabled(true)
|
||||||
|
|
||||||
|
|
||||||
|
# Only single-snap_zone Station-derived stations use the generic `enabled`
|
||||||
|
# toggle here. Table is Station-derived too now (SharedInventoryStation), but
|
||||||
|
# it has multiple snap_zones and manages their enabling itself via its own
|
||||||
|
# FSM (_set_snap_zones_enabled) - toggling only the base `snap_zone` here
|
||||||
|
# would desync it from the rest of Table's zones, so it's excluded.
|
||||||
|
func _set_stations_enabled(value: bool) -> void:
|
||||||
|
for station in get_tree().get_nodes_in_group("station"):
|
||||||
|
if station is Station and not station is Table:
|
||||||
|
station.enabled = value
|
||||||
|
|
||||||
|
|
||||||
|
# Despawn all despawnable pickables unless it's in a "persistent_inventory"
|
||||||
|
# snap_zone. Permanent fixtures (e.g. a station's knife) opt out entirely by
|
||||||
|
# having no DespawningItem child, or a disabled one.
|
||||||
|
func despawn_unheld_pickables():
|
||||||
|
var root = get_tree().get_root()
|
||||||
|
var pickables: Array[Node] = []
|
||||||
|
_collect_pickables(root, pickables)
|
||||||
|
for pickable in pickables:
|
||||||
|
var despawning_item := pickable.get_node_or_null("DespawningItem") as DespawningItem
|
||||||
|
if not despawning_item or not despawning_item.enabled:
|
||||||
|
continue
|
||||||
|
var held_by: Node = pickable.get_picked_up_by()
|
||||||
|
if not held_by:
|
||||||
|
NetworkManager.despawn_item(pickable)
|
||||||
|
continue
|
||||||
|
if not held_by.is_in_group("persistent_inventory"):
|
||||||
|
SweetLogger.debug("Despawn unheld pickable held_by: {0}, pickable: {1}", [held_by, pickable])
|
||||||
|
pickable.drop()
|
||||||
|
NetworkManager.despawn_item(pickable)
|
||||||
|
|
||||||
|
|
||||||
|
func _collect_pickables(node: Node, out_array: Array) -> void:
|
||||||
|
if node is XRToolsPickable:
|
||||||
|
out_array.append(node)
|
||||||
|
for child in node.get_children():
|
||||||
|
if child is Node:
|
||||||
|
_collect_pickables(child, out_array)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[gd_scene format=3 uid="uid://bnwb7imcotkod"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bsdpd18i1i17s" path="res://prefabs/build_mode_controller.gd" id="1_7i0c4"]
|
||||||
|
|
||||||
|
[node name="BuildModeController" type="Node" unique_id=552013109]
|
||||||
|
script = ExtResource("1_7i0c4")
|
||||||
+86
-15
@@ -1,24 +1,95 @@
|
|||||||
class_name CombinableItem
|
class_name CombinableItem
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
## Identity of this item, referenced by other items' recipes.
|
@export var enabled: bool = true
|
||||||
@export var id: StringName
|
|
||||||
|
|
||||||
## Recipes describing what the item holding this component turns into when
|
@onready var combine_area_3d: Area3D = $Area3d
|
||||||
## another item is combined into it while snapped. Recipes are directional:
|
@onready var _pickable: XRToolsPickable = get_parent() as XRToolsPickable
|
||||||
## only the snapped (base) item's recipes are consulted.
|
|
||||||
@export var recipes: Array[CombineRecipe] = []
|
# Guard so a combine only fires once.
|
||||||
|
var _combining: bool = false
|
||||||
|
var _food_item: FoodItem
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
if id.is_empty():
|
SweetLogger.debug("{0} ready", [_pickable.name])
|
||||||
push_error("CombinableItem on ", get_parent().name, " has no 'id' set.")
|
_food_item = get_parent().get_node_or_null("FoodItem") as FoodItem
|
||||||
|
if not _food_item:
|
||||||
|
SweetLogger.warning("{0} missing FoodItem reference, must be a sibling of a FoodItem", [get_parent().name])
|
||||||
|
|
||||||
|
if not _pickable:
|
||||||
|
SweetLogger.error("{0} must be a grandchild of an XRToolsPickable", [get_parent().name])
|
||||||
|
return
|
||||||
|
if not _food_item:
|
||||||
|
SweetLogger.warning("{0} requires a FoodItem sibling", [_pickable.name])
|
||||||
|
return
|
||||||
|
if not enabled:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Detect items whether held (layer 17 "Held Objects") or loose
|
||||||
|
# (layer 3 "Pickable Objects"). Don't advertise a layer of our own.
|
||||||
|
combine_area_3d.collision_mask = 0b0000_0000_0000_0001_0000_0000_0000_0100
|
||||||
|
combine_area_3d.collision_layer = 0
|
||||||
|
# Deferred: _ready can run during a physics signal flush (when a combine
|
||||||
|
# spawns the result), where toggling monitoring directly is forbidden.
|
||||||
|
set_deferred("monitoring", false)
|
||||||
|
set_deferred("monitorable", false)
|
||||||
|
|
||||||
|
# Signals
|
||||||
|
_pickable.picked_up.connect(_on_item_picked_up)
|
||||||
|
_pickable.dropped.connect(_on_item_dropped)
|
||||||
|
combine_area_3d.body_entered.connect(_on_body_entered)
|
||||||
|
|
||||||
|
|
||||||
## Returns the scene this item becomes when combined with [param other_id],
|
# Enable the trigger only while snapped into a snap zone (not hand-held).
|
||||||
## or null if there is no matching recipe.
|
func _on_item_picked_up(_item: Node3D) -> void:
|
||||||
func get_result_for(other_id: StringName) -> PackedScene:
|
var by := _pickable.get_picked_up_by()
|
||||||
for recipe in recipes:
|
var is_snapped: bool = by != null and by.has_method("is_xr_class") and by.is_xr_class("XRToolsSnapZone")
|
||||||
if recipe and recipe.ingredient_id == other_id:
|
set_deferred("monitoring", is_snapped)
|
||||||
return recipe.result
|
|
||||||
return null
|
func _on_item_dropped(_item: Node3D) -> void:
|
||||||
|
set_deferred("monitoring", false)
|
||||||
|
|
||||||
|
# If the other body is a FoodItem, check for a recipe and combine if one exists.
|
||||||
|
# Combining is a server decision (the base item is server-snapped into a zone).
|
||||||
|
func _on_body_entered(body: Node3D) -> void:
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
return
|
||||||
|
if _combining or body == _pickable:
|
||||||
|
SweetLogger.debug("Other is our own pickable")
|
||||||
|
return
|
||||||
|
|
||||||
|
var other := Helper.find_food_item(body)
|
||||||
|
if not other:
|
||||||
|
SweetLogger.debug("Other is not a FoodItem")
|
||||||
|
return
|
||||||
|
|
||||||
|
var result: PackedScene = RecipeManager.get_combination_result(_food_item.id, other.id)
|
||||||
|
if not result:
|
||||||
|
SweetLogger.debug("There is no recipe for {0} + {1}", [_food_item.id, other.id])
|
||||||
|
return
|
||||||
|
|
||||||
|
_combine(body, result)
|
||||||
|
|
||||||
|
# Instantiate the result of combination and free the two ingredient items
|
||||||
|
func _combine(other_body: Node3D, result: PackedScene) -> void:
|
||||||
|
SweetLogger.debug("Combining {0} + {1} into {2}", [_food_item.id, Helper.find_food_item(other_body).id, result.resource_path])
|
||||||
|
|
||||||
|
# Get Snapzone
|
||||||
|
var snap_zone := _pickable.get_picked_up_by()
|
||||||
|
if not snap_zone or not snap_zone.has_method("pick_up_object"):
|
||||||
|
return
|
||||||
|
|
||||||
|
# Spawn the result through the server (so it replicates to every peer,
|
||||||
|
# including late joiners) at the base item's location, in world space.
|
||||||
|
var base_transform := _pickable.global_transform
|
||||||
|
var result_instance: Node3D = NetworkManager.spawn_item(result.resource_path, base_transform)
|
||||||
|
|
||||||
|
# Free the pickable / root of this item and consume the incoming item.
|
||||||
|
snap_zone.drop_object()
|
||||||
|
NetworkManager.despawn_item(_pickable)
|
||||||
|
other_body.drop()
|
||||||
|
NetworkManager.despawn_item(other_body)
|
||||||
|
|
||||||
|
# Snap the result into the now-empty zone.
|
||||||
|
snap_zone.pick_up_object(result_instance)
|
||||||
|
|||||||
@@ -1,19 +1,14 @@
|
|||||||
[gd_scene format=3 uid="uid://3lr2dhy62rhk"]
|
[gd_scene format=3 uid="uid://3lr2dhy62rhk"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://Prefabs/combinable_item.gd" id="1_q21ti"]
|
[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://prefabs/combinable_item.gd" id="1_q21ti"]
|
||||||
[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://Prefabs/combine_recipe.gd" id="2_anbu7"]
|
|
||||||
[ext_resource type="Script" uid="uid://e3im02nq5cye" path="res://Prefabs/combine_zone.gd" id="4_0om48"]
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_combine"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_o1b3t"]
|
||||||
size = Vector3(0.16, 0.16, 0.16)
|
radius = 0.2
|
||||||
|
|
||||||
[node name="CombinableItem" type="Node3D" unique_id=996936271]
|
[node name="CombinableItem" type="Node3D" unique_id=996936271]
|
||||||
script = ExtResource("1_q21ti")
|
script = ExtResource("1_q21ti")
|
||||||
id = &"some_food_item"
|
|
||||||
recipes = Array[ExtResource("2_anbu7")]([null])
|
|
||||||
|
|
||||||
[node name="CombineZone" type="Area3D" parent="." unique_id=1514178016]
|
[node name="Area3d" type="Area3D" parent="." unique_id=1514178016]
|
||||||
script = ExtResource("4_0om48")
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CombineZone" unique_id=706892516]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3d" unique_id=706892516]
|
||||||
shape = SubResource("BoxShape3D_combine")
|
shape = SubResource("SphereShape3D_o1b3t")
|
||||||
|
|||||||
@@ -1,108 +0,0 @@
|
|||||||
class_name CombineZone
|
|
||||||
extends Area3D
|
|
||||||
|
|
||||||
## Trigger area that lets a snapped item combine with another item pushed into
|
|
||||||
## it. The zone only monitors while its owning item is held by an
|
|
||||||
## [XRToolsSnapZone]; when an item carrying a matching [CombinableItem.id]
|
|
||||||
## enters, the snapped (base) item transforms into the recipe result and the
|
|
||||||
## incoming item is consumed.
|
|
||||||
|
|
||||||
# The pickable this zone belongs to (its parent).
|
|
||||||
@onready var _item: XRToolsPickable = get_parent().get_parent() as XRToolsPickable
|
|
||||||
|
|
||||||
# The base item's recipe data.
|
|
||||||
@onready var _combinable: CombinableItem = _find_combinable(_item)
|
|
||||||
|
|
||||||
# Guard so a combine only fires once.
|
|
||||||
var _combining: bool = false
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
# Detect items whether held (layer 17 "Held Objects") or loose
|
|
||||||
# (layer 3 "Pickable Objects"). Don't advertise a layer of our own.
|
|
||||||
collision_mask = 0b0000_0000_0000_0001_0000_0000_0000_0100
|
|
||||||
collision_layer = 0
|
|
||||||
# Deferred: _ready can run during a physics signal flush (when a combine
|
|
||||||
# spawns the result), where toggling monitoring directly is forbidden.
|
|
||||||
set_deferred("monitoring", false)
|
|
||||||
set_deferred("monitorable", false)
|
|
||||||
|
|
||||||
if not _item:
|
|
||||||
push_error("CombineZone must be a grand child of an XRToolsPickable.")
|
|
||||||
return
|
|
||||||
if not _combinable:
|
|
||||||
push_error("CombineZone requires a CombinableItem sibling on ", _item.name, ".")
|
|
||||||
return
|
|
||||||
|
|
||||||
_item.picked_up.connect(_on_item_picked_up)
|
|
||||||
_item.dropped.connect(_on_item_dropped)
|
|
||||||
body_entered.connect(_on_body_entered)
|
|
||||||
|
|
||||||
|
|
||||||
# Enable the trigger only while snapped into a snap zone (not hand-held).
|
|
||||||
func _on_item_picked_up(_pickable: Node3D) -> void:
|
|
||||||
var by := _item.get_picked_up_by()
|
|
||||||
var snapped: bool = by != null and by.has_method("is_xr_class") and by.is_xr_class("XRToolsSnapZone")
|
|
||||||
set_deferred("monitoring", snapped)
|
|
||||||
|
|
||||||
|
|
||||||
func _on_item_dropped(_pickable: Node3D) -> void:
|
|
||||||
set_deferred("monitoring", false)
|
|
||||||
|
|
||||||
|
|
||||||
func _on_body_entered(body: Node3D) -> void:
|
|
||||||
if _combining or body == _item:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Combining is a world-state change: only the server/offline host runs it.
|
|
||||||
# (Clients never have the base item snapped, so their zone won't monitor, but
|
|
||||||
# guard explicitly in case of overlap during authority handoff.)
|
|
||||||
if not NetworkManager.owns_world():
|
|
||||||
return
|
|
||||||
|
|
||||||
var other := _find_combinable(body)
|
|
||||||
if not other:
|
|
||||||
return
|
|
||||||
|
|
||||||
var result: PackedScene = _combinable.get_result_for(other.id)
|
|
||||||
if not result:
|
|
||||||
return
|
|
||||||
|
|
||||||
_combine(body, result)
|
|
||||||
|
|
||||||
|
|
||||||
# Transform the base item into [param result], consuming the incoming item.
|
|
||||||
func _combine(other_body: Node3D, result: PackedScene) -> void:
|
|
||||||
_combining = true
|
|
||||||
|
|
||||||
var snap_zone := _item.get_picked_up_by()
|
|
||||||
if not snap_zone or not snap_zone.has_method("pick_up_object"):
|
|
||||||
push_warning("CombineZone: base item is not held by a snap zone; cannot combine.")
|
|
||||||
_combining = false
|
|
||||||
return
|
|
||||||
|
|
||||||
# Spawn the result (networked) at the base item's location, in world space.
|
|
||||||
var base_transform := _item.global_transform
|
|
||||||
var result_instance := NetworkManager.spawn_item(result.resource_path, base_transform)
|
|
||||||
|
|
||||||
# Free the base item and consume the incoming item.
|
|
||||||
snap_zone.drop_object()
|
|
||||||
_item.queue_free()
|
|
||||||
if other_body.has_method("drop_and_free"):
|
|
||||||
other_body.drop_and_free()
|
|
||||||
else:
|
|
||||||
other_body.queue_free()
|
|
||||||
|
|
||||||
# Snap the result into the now-empty zone.
|
|
||||||
if result_instance:
|
|
||||||
snap_zone.pick_up_object(result_instance)
|
|
||||||
|
|
||||||
|
|
||||||
# Find a CombinableItem among the direct children of [param node].
|
|
||||||
func _find_combinable(node: Node) -> CombinableItem:
|
|
||||||
if not node:
|
|
||||||
return null
|
|
||||||
for child in node.get_children():
|
|
||||||
if child is CombinableItem:
|
|
||||||
return child
|
|
||||||
return null
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://e3im02nq5cye
|
|
||||||
@@ -6,4 +6,4 @@ extends Node
|
|||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
if not turns_into:
|
if not turns_into:
|
||||||
push_error("Cooking Error: 'turns_into' PackedScene is missing on ", name, ". Please assign a scene in the Inspector.")
|
SweetLogger.warning("{0} missing turns_into reference", [name])
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[gd_scene format=3 uid="uid://7earnjgdmwgx"]
|
[gd_scene format=3 uid="uid://7earnjgdmwgx"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bs7cxydoxk1cx" path="res://Prefabs/cookable_item.gd" id="1_6hwx6"]
|
[ext_resource type="Script" uid="uid://bs7cxydoxk1cx" path="res://prefabs/cookable_item.gd" id="1_6hwx6"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://Items/Charcoal.tscn" id="2_rpt7j"]
|
[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://items/Charcoal.tscn" id="2_rpt7j"]
|
||||||
|
|
||||||
[node name="CookableItem" type="Node" unique_id=280820828]
|
[node name="CookableItem" type="Node" unique_id=280820828]
|
||||||
script = ExtResource("1_6hwx6")
|
script = ExtResource("1_6hwx6")
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dm70ynyuw1a5u"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bbr5arulbeuvq" path="res://scenes/day_controller.gd" id="1_lna8j"]
|
||||||
|
|
||||||
|
[node name="DayController" type="Node" unique_id=1418639156]
|
||||||
|
script = ExtResource("1_lna8j")
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
extends Node
|
||||||
|
class_name DespawningItem
|
||||||
|
|
||||||
|
@export var enabled: bool = true
|
||||||
|
|
||||||
|
@export var time_to_despawn: float = 8
|
||||||
|
|
||||||
|
# The minimum speed required to reset despawn timer.
|
||||||
|
@export var minimum_speed_square: float = 0.1
|
||||||
|
|
||||||
|
|
||||||
|
@onready var _pickable: XRToolsPickable = get_parent() as XRToolsPickable
|
||||||
|
@onready var _rigid: RigidBody3D = get_parent() as RigidBody3D
|
||||||
|
|
||||||
|
|
||||||
|
var _time_left: float = time_to_despawn
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
if not _pickable:
|
||||||
|
SweetLogger.error("{0} must be a grandchild of an XRToolsPickable", [name])
|
||||||
|
return
|
||||||
|
if not _rigid:
|
||||||
|
SweetLogger.error("{0} must be a grandchild of a RigidBody3D", [name])
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if not enabled:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Despawning is a world decision, so only the owner of world logic runs the
|
||||||
|
# clock. Every peer used to run its own copy: the countdown drifted between
|
||||||
|
# them and the blink below toggled `visible` locally, so the same item was
|
||||||
|
# shown on one peer and hidden on the other. Non-owners just follow the
|
||||||
|
# server, which removes the item for everyone when its time is up.
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
return
|
||||||
|
|
||||||
|
# if we're held or moving, reset timer and return
|
||||||
|
if _pickable.get_picked_up_by() or _rigid.linear_velocity.length_squared() > pow(minimum_speed_square,2):
|
||||||
|
_time_left = time_to_despawn
|
||||||
|
_set_visible(true)
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
# Count down to zero and despawn
|
||||||
|
_time_left -= delta
|
||||||
|
if _time_left <= 0:
|
||||||
|
SweetLogger.debug("Despawning {0}", [get_parent()])
|
||||||
|
NetworkManager.despawn_item(get_parent())
|
||||||
|
# Stop counting: despawn_item() only queues the free, so without this we
|
||||||
|
# keep re-reporting the same item every frame until it actually goes.
|
||||||
|
set_process(false)
|
||||||
|
return
|
||||||
|
|
||||||
|
# Make item blink in and out before despawning
|
||||||
|
if _time_left < time_to_despawn / 2:
|
||||||
|
_set_visible(int(_time_left * 5.0) % 2 == 0)
|
||||||
|
|
||||||
|
|
||||||
|
func _set_visible(value: bool) -> void:
|
||||||
|
if not NetworkManager.owns_world():
|
||||||
|
return
|
||||||
|
get_parent().visible = value
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[gd_scene format=3 uid="uid://b5ukku8i0hilb"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://deyna316ka4xs" path="res://prefabs/despawning_item.gd" id="1_ayqk8"]
|
||||||
|
|
||||||
|
[node name="DespawningItem" type="Node" unique_id=303090111]
|
||||||
|
script = ExtResource("1_ayqk8")
|
||||||
@@ -6,3 +6,5 @@ enum Type { MEAL, SIDE, INGREDIENT, NONE }
|
|||||||
|
|
||||||
@export var id: String
|
@export var id: String
|
||||||
@export var type: Type = Type.NONE
|
@export var type: Type = Type.NONE
|
||||||
|
@export var sell_value = 1
|
||||||
|
var is_absorbed = false # Used by tables to keep track of whether the item has been registered as delivered already
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
[gd_scene format=3 uid="uid://bfj80jh13t6e5"]
|
[gd_scene format=3 uid="uid://bfj80jh13t6e5"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://5tpoohkopryv" path="res://Prefabs/food_item.gd" id="1_0na5k"]
|
[ext_resource type="Script" uid="uid://5tpoohkopryv" path="res://prefabs/food_item.gd" id="1_0na5k"]
|
||||||
|
|
||||||
[node name="FoodItem" type="Node" unique_id=63948206]
|
[node name="FoodItem" type="Node" unique_id=63948206]
|
||||||
script = ExtResource("1_0na5k")
|
script = ExtResource("1_0na5k")
|
||||||
id = "hamburger"
|
id = "some_food_id"
|
||||||
item_type = "Meal"
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
extends Node3D
|
||||||
|
|
||||||
|
@export var kitchen_scene: PackedScene
|
||||||
|
@export var hob_scene: PackedScene
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
|
||||||
|
if not kitchen_scene:
|
||||||
|
SweetLogger.warning("{0} missing kitchen_scene reference", [name])
|
||||||
|
|
||||||
|
SweetLogger.debug("->[]")
|
||||||
|
|
||||||
|
if NetworkManager.owns_world():
|
||||||
|
SweetLogger.debug("Initializing on server")
|
||||||
|
# Later we will do procedural generation here.
|
||||||
|
# For now we just load a scene.
|
||||||
|
NetworkManager.call_deferred("spawn_item", kitchen_scene.resource_path, transform)
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[gd_scene format=3 uid="uid://t83yi6hxti2x"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://fyd2rjramhbb" path="res://prefabs/kitchen_instantiator.gd" id="1_jitfr"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://damrxtlt7uswf" path="res://content/station_layouts/small_line.tscn" id="2_3awg0"]
|
||||||
|
|
||||||
|
[node name="KitchenInstantiator" type="Node3D" unique_id=291701321]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0)
|
||||||
|
script = ExtResource("1_jitfr")
|
||||||
|
kitchen_scene = ExtResource("2_3awg0")
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
class_name NetPickable
|
|
||||||
extends Node
|
|
||||||
|
|
||||||
## Networks an XRToolsPickable (RigidBody3D). Default authority is the server,
|
|
||||||
## which simulates free items and syncs their transform. Grabbing an item with a
|
|
||||||
## hand transfers authority to the grabbing client (its local kinematic grab
|
|
||||||
## driver then drives the synced transform); releasing returns authority and the
|
|
||||||
## throw velocity to the server. Non-authority peers keep the body frozen and
|
|
||||||
## follow the synced transform, so only one machine ever simulates an item.
|
|
||||||
|
|
||||||
@onready var _item: XRToolsPickable = get_parent() as XRToolsPickable
|
|
||||||
|
|
||||||
var net_held_by := 0 # peer id currently holding (0 = free); kept consistent via NetworkManager
|
|
||||||
var _was_authority := true
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
if not _item:
|
|
||||||
push_error("NetPickable must be a child of an XRToolsPickable")
|
|
||||||
return
|
|
||||||
_item.grabbed.connect(_on_grabbed)
|
|
||||||
_item.released.connect(_on_released)
|
|
||||||
_was_authority = _item.is_multiplayer_authority()
|
|
||||||
_apply_authority_state()
|
|
||||||
|
|
||||||
|
|
||||||
## Enable the item only where it is free or where we are its current holder, so
|
|
||||||
## a peer's snap zone / hand never grabs an item another peer is holding. Called
|
|
||||||
## by NetworkManager whenever net_held_by changes. Note: net_held_by is set per
|
|
||||||
## peer by RPC (not by a synchronizer), so the holder keeps its item enabled
|
|
||||||
## while everyone else disables their copy.
|
|
||||||
func apply_held_state() -> void:
|
|
||||||
if not _item:
|
|
||||||
return
|
|
||||||
_item.enabled = net_held_by == 0 or net_held_by == multiplayer.get_unique_id()
|
|
||||||
|
|
||||||
|
|
||||||
func _physics_process(_delta: float) -> void:
|
|
||||||
if not NetworkManager.is_online():
|
|
||||||
return
|
|
||||||
var mine := _item.is_multiplayer_authority()
|
|
||||||
if mine != _was_authority:
|
|
||||||
_was_authority = mine
|
|
||||||
_apply_authority_state()
|
|
||||||
|
|
||||||
|
|
||||||
# Configure physics for whether we own this item or merely mirror it.
|
|
||||||
func _apply_authority_state() -> void:
|
|
||||||
if not _item:
|
|
||||||
return
|
|
||||||
if _item.is_multiplayer_authority():
|
|
||||||
# We own physics: simulate the item whenever it is not held.
|
|
||||||
if not _item.is_picked_up():
|
|
||||||
_item.freeze = false
|
|
||||||
else:
|
|
||||||
# Someone else owns it: follow the synced transform kinematically.
|
|
||||||
_item.freeze = true
|
|
||||||
_item.freeze_mode = RigidBody3D.FREEZE_MODE_KINEMATIC
|
|
||||||
|
|
||||||
|
|
||||||
func _on_grabbed(_pickable: Node3D, by: Node3D) -> void:
|
|
||||||
if not NetworkManager.is_online():
|
|
||||||
return
|
|
||||||
# Only hand grabs transfer authority; snap-zone grabs are server-driven.
|
|
||||||
if not (by is XRToolsFunctionPickup):
|
|
||||||
return
|
|
||||||
NetworkManager.request_item_authority.rpc_id(1, _item.get_path())
|
|
||||||
|
|
||||||
|
|
||||||
func _on_released(_pickable: Node3D, by: Node3D) -> void:
|
|
||||||
if not NetworkManager.is_online():
|
|
||||||
return
|
|
||||||
if not (by is XRToolsFunctionPickup):
|
|
||||||
return
|
|
||||||
NetworkManager.release_item_authority.rpc_id(1, _item.get_path(), _item.linear_velocity, _item.angular_velocity)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://6n784li8n5ck
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[gd_scene format=3 uid="uid://mpapt5mkbuao"]
|
||||||
|
|
||||||
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_4m60m"]
|
||||||
|
friction = 0.0
|
||||||
|
bounce = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_nn8tr"]
|
||||||
|
radius = 0.2752769
|
||||||
|
|
||||||
|
[node name="SlideOffDome" type="StaticBody3D" unique_id=1427609426]
|
||||||
|
collision_layer = 7
|
||||||
|
physics_material_override = SubResource("PhysicsMaterial_4m60m")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="." unique_id=513124640]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.99165964, 0)
|
||||||
|
shape = SubResource("SphereShape3D_nn8tr")
|
||||||
@@ -0,0 +1,145 @@
|
|||||||
|
[gd_scene format=3 uid="uid://22shbqdvnwgo"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://Net/multiplayer_world.gd" id="1_nlnup"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/XROrigin.tscn" id="2_8pfaf"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="3_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob_old.tscn" id="4_3lufs"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="5_kh26v"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="7_tejmp"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dpot5qie20vf6" path="res://items/burger.tscn" id="9_rwx83"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="12_ah4xa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cnjwtnhwh0i8q" path="res://stations/dirt_station.tscn" id="13_46xi2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="14_h88sx"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="15_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_tpcje"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="16_g2k6a"]
|
||||||
|
[ext_resource type="Script" uid="uid://k8ywnvlhcic4" path="res://test/testworldLoad.gd" id="16_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="17_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="18_3lufs"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://prefabs/GameOvercontroler.gd" id="19_3lufs"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_gatbn")
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("5_kh26v")
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(16, 10, 0.1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_nlnup")
|
||||||
|
populate_from_layout = false
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_8pfaf")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table" parent="." unique_id=1863572470 instance=ExtResource("16_g2k6a")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 2.739665, -0.023897558, -1.1895752)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0002836883, 0.0006355047, -0.0054528117)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="." unique_id=496572049 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.00026646256, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob3" parent="." unique_id=421567982 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0.00026646256, -1.2)
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="." unique_id=1720683779 instance=ExtResource("7_tejmp")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0.015, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink" parent="." unique_id=2055277359 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5997182, 0.00026646256, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink2" parent="." unique_id=1692612192 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1997182, 0.00026646256, -1.2)
|
||||||
|
|
||||||
|
[node name="DirtStation" parent="." unique_id=160842153 instance=ExtResource("13_46xi2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.00026646256, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.00026646256, 0)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=906748771 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.00026646256, 0.6)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="." unique_id=1487893288 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.6, 0.00026646256, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="." unique_id=1154936647 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0.00026646256, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter7" parent="." unique_id=990260272 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.6, 0.00026646256, 1.2)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, 8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, -8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=221361954 instance=ExtResource("17_gatbn")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.46454135, 3.4496074, -1.832967)
|
||||||
|
visible = false
|
||||||
|
scene = ExtResource("18_3lufs")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=1302491889]
|
||||||
|
script = ExtResource("19_3lufs")
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="." unique_id=710538846 instance=ExtResource("14_h88sx")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="." unique_id=235630131 instance=ExtResource("15_m3h4l")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="Node" type="Node" parent="." unique_id=1224933801]
|
||||||
|
script = ExtResource("16_m3h4l")
|
||||||
|
|
||||||
|
[node name="raw_burger" parent="." unique_id=1675596942 instance=ExtResource("9_rwx83")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 1.2, -0.6)
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
[gd_scene format=3 uid="uid://22shbqdvnwgo"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_8pfaf"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://Textures/dev_material_3d.tres" id="3_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://Stations/Hob.tscn" id="4_3lufs"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="5_kh26v"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://Stations/BurgerBunsDispenser.tscn" id="7_tejmp"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://Stations/sink.tscn" id="12_ah4xa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cnjwtnhwh0i8q" path="res://Stations/dirt_station.tscn" id="13_46xi2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://Stations/plate_dispenser.tscn" id="14_h88sx"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://Stations/raw_burger_dispenser.tscn" id="15_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://Stations/Counter.tscn" id="15_tpcje"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://Stations/table.tscn" id="16_g2k6a"]
|
||||||
|
[ext_resource type="Script" uid="uid://k8ywnvlhcic4" path="res://Scenes/testworldLoad.gd" id="16_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="17_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="18_3lufs"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://Scenes/GameOvercontroler.gd" id="19_3lufs"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_gatbn")
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("5_kh26v")
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(16, 10, 0.1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_m3h4l")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_8pfaf")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0002836883, 0.0006355047, -0.0054528117)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="." unique_id=496572049 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob3" parent="." unique_id=421567982 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="." unique_id=1720683779 instance=ExtResource("7_tejmp")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0.015, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink" parent="." unique_id=2055277359 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5997182, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink2" parent="." unique_id=1692612192 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1997182, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="DirtStation" parent="." unique_id=160842153 instance=ExtResource("13_46xi2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, 0)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=906748771 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, 0.6)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="." unique_id=1487893288 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.6, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="." unique_id=1154936647 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter7" parent="." unique_id=990260272 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.6, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Table" parent="." unique_id=1863572470 instance=ExtResource("16_g2k6a")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 2.739665, 0.47583598, -1.1895752)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, 8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, -8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=221361954 instance=ExtResource("17_gatbn")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.46454135, 3.4496074, -1.832967)
|
||||||
|
visible = false
|
||||||
|
scene = ExtResource("18_3lufs")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=1302491889]
|
||||||
|
script = ExtResource("19_3lufs")
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="." unique_id=710538846 instance=ExtResource("14_h88sx")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="." unique_id=235630131 instance=ExtResource("15_m3h4l")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="Node" type="Node" parent="." unique_id=1224933801]
|
||||||
|
script = ExtResource("16_m3h4l")
|
||||||
@@ -0,0 +1,140 @@
|
|||||||
|
[gd_scene format=3 uid="uid://22shbqdvnwgo"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_8pfaf"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://Textures/dev_material_3d.tres" id="3_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://Stations/Hob.tscn" id="4_3lufs"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="5_kh26v"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://Stations/BurgerBunsDispenser.tscn" id="7_tejmp"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://Stations/sink.tscn" id="12_ah4xa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cnjwtnhwh0i8q" path="res://Stations/dirt_station.tscn" id="13_46xi2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://Stations/plate_dispenser.tscn" id="14_h88sx"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://Stations/raw_burger_dispenser.tscn" id="15_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://Stations/Counter.tscn" id="15_tpcje"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://Stations/table.tscn" id="16_g2k6a"]
|
||||||
|
[ext_resource type="Script" uid="uid://k8ywnvlhcic4" path="res://Scenes/testworldLoad.gd" id="16_m3h4l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="17_gatbn"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="18_3lufs"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://Scenes/GameOvercontroler.gd" id="19_3lufs"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_gatbn")
|
||||||
|
size = Vector3(16, 0.1, 16)
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("5_kh26v")
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(16, 10, 0.1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_m3h4l")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_8pfaf")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0002836883, 0.0006355047, -0.0054528117)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="." unique_id=496572049 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Hob3" parent="." unique_id=421567982 instance=ExtResource("4_3lufs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="." unique_id=1720683779 instance=ExtResource("7_tejmp")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0.015, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink" parent="." unique_id=2055277359 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5997182, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Sink2" parent="." unique_id=1692612192 instance=ExtResource("12_ah4xa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1997182, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="DirtStation" parent="." unique_id=160842153 instance=ExtResource("13_46xi2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0.5, -1.2)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, 0)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=906748771 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.8, 0.5, 0.6)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="." unique_id=1487893288 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.6, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="." unique_id=1154936647 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Counter7" parent="." unique_id=990260272 instance=ExtResource("15_tpcje")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.6, 0.5, 1.2)
|
||||||
|
|
||||||
|
[node name="Table" parent="." unique_id=1863572470 instance=ExtResource("16_g2k6a")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 2.739665, 0.47583598, -1.1895752)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, 8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.689, -8)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 8, 4.689, 0)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=221361954 instance=ExtResource("17_gatbn")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.46454135, 3.4496074, -1.832967)
|
||||||
|
visible = false
|
||||||
|
scene = ExtResource("18_3lufs")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=1302491889]
|
||||||
|
script = ExtResource("19_3lufs")
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="." unique_id=710538846 instance=ExtResource("14_h88sx")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="." unique_id=235630131 instance=ExtResource("15_m3h4l")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="Node" type="Node" parent="." unique_id=1224933801]
|
||||||
|
script = ExtResource("16_m3h4l")
|
||||||
+417
-82
@@ -1,45 +1,90 @@
|
|||||||
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_57ppd"]
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://Net/multiplayer_world.gd" id="1_57ppd"]
|
||||||
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_o1b3t"]
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/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="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="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
||||||
[ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="5_57ppd"]
|
[ext_resource type="PackedScene" uid="uid://q37nqadkibbp" path="res://environment/door.tscn" id="10_l51r2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://Items/PickupCube.tscn" id="6_eoxxy"]
|
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://items/hamburger.tscn" id="11_c8vo7"]
|
||||||
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://Textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
[ext_resource type="PackedScene" uid="uid://da6yrsnxvsrif" path="res://environment/wall.tscn" id="11_slo47"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c0lknik4noobs" path="res://Items/BurgerBuns.tscn" id="8_rraok"]
|
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="12_1f3bw"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://Stations/BurgerBunsDispenser.tscn" id="9_sq0s2"]
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="12_dpf3b"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="10_ay2w6"]
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="13_1f3bw"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dpot5qie20vf6" path="res://Items/burger.tscn" id="11_qn1ku"]
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="13_yjosk"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://Items/hamburger.tscn" id="12_hfwnn"]
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob_old.tscn" id="14_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="14_di04w"]
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_di04w"]
|
||||||
size = Vector3(5, 0.1, 5)
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="15_eoxxy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="15_qxyk8"]
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://prefabs/GameOvercontroler.gd" id="16_n8fyw"]
|
||||||
material = ExtResource("3_irf4n")
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="16_u5c1m"]
|
||||||
size = Vector3(5, 0.1, 5)
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="17_y7baw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="18_wvcs1"]
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
[ext_resource type="PackedScene" uid="uid://duwrbvwcqcuk3" path="res://items/chips.tscn" id="22_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dgk88esxip5xi" path="res://items/knife.tscn" id="23_qxyk8"]
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_i5j2u"]
|
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_dlkho"]
|
|
||||||
radius = 0.3
|
|
||||||
|
|
||||||
[sub_resource type="Environment" id="Environment_bvwq1"]
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
background_mode = 2
|
background_mode = 2
|
||||||
sky = ExtResource("7_n8fyw")
|
sky = ExtResource("7_n8fyw")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
reflected_light_source = 2
|
reflected_light_source = 2
|
||||||
ssr_enabled = true
|
ssr_enabled = true
|
||||||
ssao_enabled = true
|
ssao_enabled = true
|
||||||
ssil_enabled = true
|
ssil_enabled = true
|
||||||
sdfgi_enabled = true
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_irf4n")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.35, 0.12250001, 0.12250001, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_vlqg6"]
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(3, 0, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yqrpd"]
|
||||||
|
albedo_color = Color(0.35, 0.35, 0.35, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_kk3mq"]
|
||||||
|
material = SubResource("StandardMaterial3D_yqrpd")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(-3, 0, 0)
|
||||||
|
|
||||||
[node name="Main" type="Node3D" unique_id=1312265607]
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
script = ExtResource("1_57ppd")
|
script = ExtResource("1_57ppd")
|
||||||
|
|
||||||
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_o1b3t")]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, -2.4543328, 1.247834, 4.698895)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=262398468]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1772076868]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=730717613]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
@@ -51,82 +96,372 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
|||||||
shape = SubResource("BoxShape3D_vlqg6")
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00018164515, 0.0006352663, -0.002532661)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, -0.003)
|
||||||
mesh = SubResource("BoxMesh_24d3s")
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("4_ctden")]
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29336345, 0.8981018, -1.484)
|
|
||||||
|
|
||||||
[node name="Counter" type="StaticBody3D" parent="." unique_id=1487893288 groups=["station"]]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.73186195, 0.8981018, -1.484)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Counter" unique_id=692568688]
|
|
||||||
shape = SubResource("BoxShape3D_24d3s")
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Counter/CollisionShape3D" unique_id=127773521]
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
mesh = SubResource("BoxMesh_i5j2u")
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
[node name="Label3D" type="Label3D" parent="Counter/CollisionShape3D" unique_id=149978729]
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
transform = Transform3D(0.9999992, 0, 0, 0, 0.99999946, 0, 0, 0, 0.9999992, 0.002797456, 0.6309581, -0.2812457)
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
text = "Counter"
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
[node name="XRToolsSnapZone" type="Area3D" parent="Counter" unique_id=1647380272 groups=["station"]]
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0)
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
collision_layer = 65536
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
collision_mask = 65536
|
|
||||||
script = ExtResource("5_57ppd")
|
|
||||||
snap_mode = 1
|
|
||||||
initial_object = NodePath("../../Plate")
|
|
||||||
metadata/_custom_type_script = "uid://cquqe4f1m1sw6"
|
|
||||||
|
|
||||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Counter/XRToolsSnapZone" unique_id=969340130]
|
[node name="GameOverPanel" parent="." unique_id=1234658657 instance=ExtResource("14_di04w")]
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0)
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
shape = SubResource("SphereShape3D_dlkho")
|
scene = ExtResource("15_eoxxy")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=803158176]
|
||||||
environment = SubResource("Environment_bvwq1")
|
script = ExtResource("16_n8fyw")
|
||||||
|
|
||||||
[node name="BurgerBuns" parent="." unique_id=1088240294 instance=ExtResource("8_rraok")]
|
[node name="Resturant" type="Node3D" parent="." unique_id=1083608050]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8162017, 1.6081157, -1.4714175)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6212463e-05, -0.010500789, 0.0014204979)
|
||||||
|
|
||||||
[node name="BurgerBunsDispenser" parent="." unique_id=1720683779 instance=ExtResource("9_sq0s2")]
|
[node name="StaticBody3D" type="StaticBody3D" parent="Resturant" unique_id=1814285538]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.832131, 0.40028095, -1.4813508)
|
|
||||||
|
|
||||||
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("10_ay2w6")]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Resturant/StaticBody3D" unique_id=1661443874]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.72025335, 1.4458435, -1.5107731)
|
shape = SubResource("WorldBoundaryShape3D_vlqg6")
|
||||||
|
|
||||||
[node name="burger" parent="." unique_id=1417604760 instance=ExtResource("11_qn1ku")]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Resturant" unique_id=888732490]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1439226, 1.4195822, -1.2004558)
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_vlqg6")
|
||||||
|
|
||||||
[node name="burger2" parent="." unique_id=1584460510 instance=ExtResource("11_qn1ku")]
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Resturant" unique_id=836421800]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1396115, 1.5300478, -1.2016745)
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_kk3mq")
|
||||||
|
|
||||||
[node name="burger3" parent="." unique_id=1884095916 instance=ExtResource("11_qn1ku")]
|
[node name="Door" parent="Resturant" unique_id=964400290 instance=ExtResource("10_l51r2")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1424646, 1.4969791, -1.210453)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 0)
|
||||||
|
|
||||||
[node name="burger4" parent="." unique_id=1844818864 instance=ExtResource("11_qn1ku")]
|
[node name="Walls" type="Node3D" parent="Resturant" unique_id=1804204696]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1414003, 1.4543622, -1.210453)
|
|
||||||
|
|
||||||
[node name="Hamburger" parent="." unique_id=761091445 instance=ExtResource("12_hfwnn")]
|
[node name="Wall" parent="Resturant/Walls" unique_id=434181749 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.18456237, 1.5438088, -1.3716147)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6000001, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject" parent="." unique_id=1675596942 instance=ExtResource("6_eoxxy")]
|
[node name="Wall2" parent="Resturant/Walls" unique_id=1183111925 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.042440414, 1.4792972, -1.0473135)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject2" parent="." unique_id=713087634 instance=ExtResource("6_eoxxy")]
|
[node name="Wall3" parent="Resturant/Walls" unique_id=1561473949 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, -5.293956e-23, -2.6077032e-08, 1.4901161e-08, 1, -0.029038578, 1.4639391, -1.1673055)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject3" parent="." unique_id=879935619 instance=ExtResource("6_eoxxy")]
|
[node name="Wall4" parent="Resturant/Walls" unique_id=1593528497 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.15074077, 1.4792972, -1.0473135)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject4" parent="." unique_id=198541902 instance=ExtResource("6_eoxxy")]
|
[node name="Wall5" parent="Resturant/Walls" unique_id=2071060763 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, -5.293956e-23, -2.6077032e-08, 1.4901161e-08, 1, -0.13733894, 1.4639391, -1.1673055)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 0)
|
||||||
|
|
||||||
[node name="Hamburger2" parent="." unique_id=1349934579 instance=ExtResource("12_hfwnn")]
|
[node name="Wall6" parent="Resturant/Walls" unique_id=1607012472 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.15603885, 1.5329368, -1.6386203)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject5" parent="." unique_id=1021333509 instance=ExtResource("6_eoxxy")]
|
[node name="Wall7" parent="Resturant/Walls" unique_id=990512055 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.06786254, 1.4792972, -1.0473135)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 0)
|
||||||
|
|
||||||
[node name="PickableObject6" parent="." unique_id=1268843669 instance=ExtResource("6_eoxxy")]
|
[node name="Wall8" parent="Resturant/Walls" unique_id=751907897 instance=ExtResource("11_slo47")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, -5.293956e-23, -2.6077032e-08, 1.4901161e-08, 1, 0.08126438, 1.4639391, -1.1673055)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.200001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall9" parent="Resturant/Walls" unique_id=358743133 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000004, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall10" parent="Resturant/Walls" unique_id=1374842161 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall11" parent="Resturant/Walls" unique_id=1408132826 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall12" parent="Resturant/Walls" unique_id=1937209307 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall13" parent="Resturant/Walls" unique_id=1714975985 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall14" parent="Resturant/Walls" unique_id=1732121903 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall15" parent="Resturant/Walls" unique_id=1311494308 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall16" parent="Resturant/Walls" unique_id=364484178 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall17" parent="Resturant/Walls" unique_id=485501605 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall18" parent="Resturant/Walls" unique_id=378206350 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall19" parent="Resturant/Walls" unique_id=294380188 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall20" parent="Resturant/Walls" unique_id=1122365254 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall21" parent="Resturant/Walls" unique_id=111446334 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall22" parent="Resturant/Walls" unique_id=999769595 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall23" parent="Resturant/Walls" unique_id=1832835858 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall24" parent="Resturant/Walls" unique_id=927052367 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall25" parent="Resturant/Walls" unique_id=1163278593 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall26" parent="Resturant/Walls" unique_id=1074868471 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall27" parent="Resturant/Walls" unique_id=510219954 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall28" parent="Resturant/Walls" unique_id=1615161517 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall29" parent="Resturant/Walls" unique_id=11605666 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall30" parent="Resturant/Walls" unique_id=2032513926 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall31" parent="Resturant/Walls" unique_id=1308803807 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall32" parent="Resturant/Walls" unique_id=493869823 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall33" parent="Resturant/Walls" unique_id=699535234 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall34" parent="Resturant/Walls" unique_id=238973326 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall35" parent="Resturant/Walls" unique_id=836717647 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall36" parent="Resturant/Walls" unique_id=446988148 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall37" parent="Resturant/Walls" unique_id=49950412 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall38" parent="Resturant/Walls" unique_id=607255208 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall39" parent="Resturant/Walls" unique_id=1089866573 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall40" parent="Resturant/Walls" unique_id=2078240231 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall41" parent="Resturant/Walls" unique_id=592669722 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall42" parent="Resturant/Walls" unique_id=1393176200 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall43" parent="Resturant/Walls" unique_id=1885346301 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall44" parent="Resturant/Walls" unique_id=2021916640 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall45" parent="Resturant/Walls" unique_id=1289086279 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall46" parent="Resturant/Walls" unique_id=396503450 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall47" parent="Resturant/Walls" unique_id=300373285 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall49" parent="Resturant/Walls" unique_id=1072273787 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall50" parent="Resturant/Walls" unique_id=896022741 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall51" parent="Resturant/Walls" unique_id=2089599721 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall52" parent="Resturant/Walls" unique_id=965479737 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall53" parent="Resturant/Walls" unique_id=43762332 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall54" parent="Resturant/Walls" unique_id=921007094 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall55" parent="Resturant/Walls" unique_id=2144411980 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall56" parent="Resturant/Walls" unique_id=370330637 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall57" parent="Resturant/Walls" unique_id=537562206 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall58" parent="Resturant/Walls" unique_id=1918288432 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall59" parent="Resturant/Walls" unique_id=944759951 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall60" parent="Resturant/Walls" unique_id=1128237563 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall61" parent="Resturant/Walls" unique_id=1755969864 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall62" parent="Resturant/Walls" unique_id=949006312 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall63" parent="Resturant/Walls" unique_id=1826688195 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall64" parent="Resturant/Walls" unique_id=116523059 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Wall65" parent="Resturant/Walls" unique_id=711153775 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall66" parent="Resturant/Walls" unique_id=741047 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall67" parent="Resturant/Walls" unique_id=664067327 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall68" parent="Resturant/Walls" unique_id=1294537251 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall69" parent="Resturant/Walls" unique_id=1152383 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall70" parent="Resturant/Walls" unique_id=1710172322 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall71" parent="Resturant/Walls" unique_id=597518110 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall72" parent="Resturant/Walls" unique_id=1028573693 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall73" parent="Resturant/Walls" unique_id=1232042046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall74" parent="Resturant/Walls" unique_id=1159091046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall75" parent="Resturant/Walls" unique_id=904470924 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall76" parent="Resturant/Walls" unique_id=1709758099 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall77" parent="Resturant/Walls" unique_id=1252446997 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall78" parent="Resturant/Walls" unique_id=1207579491 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall79" parent="Resturant/Walls" unique_id=1798073342 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall80" parent="Resturant/Walls" unique_id=36005990 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall81" parent="Resturant/Walls" unique_id=79516947 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall82" parent="Resturant/Walls" unique_id=1363235805 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Hatches" type="Node3D" parent="Resturant" unique_id=1561045769]
|
||||||
|
|
||||||
|
[node name="ServingCounter" parent="Resturant/Hatches" unique_id=1341321603 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter2" parent="Resturant/Hatches" unique_id=1325232371 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter3" parent="Resturant/Hatches" unique_id=539914523 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter4" parent="Resturant/Hatches" unique_id=2078770951 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter5" parent="Resturant/Hatches" unique_id=2019049083 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table2" parent="Resturant" unique_id=1457688277 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0.5999999, -0.035479546, -3)
|
||||||
|
|
||||||
|
[node name="Hob" parent="Resturant" unique_id=172418174 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.2000003, 0.024520457, 1.7999992)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="Resturant" unique_id=980569400 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.200001, 0.024520457, 1.1999999)
|
||||||
|
|
||||||
|
[node name="Counter" parent="Resturant" unique_id=1487893288 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.024520457, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="Resturant" unique_id=5128912 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.024520457, 3)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="Resturant" unique_id=1298458612 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.2000003, 0.024520457, 0.5999999)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="Resturant" unique_id=1764980142 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.024520457, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="Resturant" unique_id=1015820252 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.024520457, 3)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="Resturant" unique_id=710538846 instance=ExtResource("15_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.6)
|
||||||
|
|
||||||
|
[node name="Sink" parent="Resturant" unique_id=2055277359 instance=ExtResource("16_u5c1m")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0.6, -0.035479546, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="Resturant" unique_id=2141915043 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742277e-08, 0, 1, 0, -8.742277e-08, 0, -1, 4.7683716e-07, 0.024520457, -0.6000006)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="Resturant" unique_id=235630131 instance=ExtResource("17_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="Resturant" unique_id=1720683779 instance=ExtResource("18_wvcs1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Table3" parent="Resturant" unique_id=1863572470 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(-1, 0, 2.6226832e-07, 0, 1, 0, -2.6226832e-07, 0, -1, 3, -0.035479546, -3)
|
||||||
|
|
||||||
|
[node name="Hamburger" parent="." unique_id=1675596942 instance=ExtResource("11_c8vo7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8000001, -0.6)
|
||||||
|
|
||||||
|
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("12_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3800001, -0.6)
|
||||||
|
|
||||||
|
[node name="PickableObject" parent="." unique_id=1084951838 instance=ExtResource("13_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Chips" parent="." unique_id=1028364693 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Knife" parent="." unique_id=1789694138 instance=ExtResource("23_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 3)
|
||||||
|
|||||||
@@ -0,0 +1,501 @@
|
|||||||
|
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://scenes/multiplayer_world.gd" id="1_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/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="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://q37nqadkibbp" path="res://scenes/door.tscn" id="10_l51r2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://items/hamburger.tscn" id="11_c8vo7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://da6yrsnxvsrif" path="res://scenes/wall.tscn" id="11_slo47"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="12_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bbg7dwsbxxh1t" path="res://scenes/cube_side_dispense.tscn" id="12_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="12_dpf3b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="13_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="13_yjosk"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="14_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="14_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="15_eoxxy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="15_qxyk8"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://scenes/GameOvercontroler.gd" id="16_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="16_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="17_y7baw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="18_wvcs1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://duwrbvwcqcuk3" path="res://items/chips.tscn" id="22_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dgk88esxip5xi" path="res://items/knife.tscn" id="23_qxyk8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://drwuhqb3pjtiy" path="res://items/potato.tscn" id="24_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bpvp20hiagxxb" path="res://items/chopped_potato.tscn" id="25_y7baw"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("7_n8fyw")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_irf4n")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.35, 0.12250001, 0.12250001, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_vlqg6"]
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(3, 0, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yqrpd"]
|
||||||
|
albedo_color = Color(0.35, 0.35, 0.35, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_kk3mq"]
|
||||||
|
material = SubResource("StandardMaterial3D_yqrpd")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(-3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_57ppd")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -1.8943893, 0.9667189, -4.301105)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=262398468]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1772076868]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=730717613]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, -0.003)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.6896921)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=1748373996 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.0913646)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 2.2925892)
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=1234658657 instance=ExtResource("14_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
|
scene = ExtResource("15_eoxxy")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=803158176]
|
||||||
|
script = ExtResource("16_n8fyw")
|
||||||
|
|
||||||
|
[node name="CubeSideDispenser2" parent="." unique_id=200950572 instance=ExtResource("12_57ppd")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.8484511, 0, 2.9119425)
|
||||||
|
|
||||||
|
[node name="Resturant" type="Node3D" parent="." unique_id=1083608050]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6212463e-05, -0.010500789, 0.0014204979)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="Resturant" unique_id=1814285538]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Resturant/StaticBody3D" unique_id=1661443874]
|
||||||
|
shape = SubResource("WorldBoundaryShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Resturant" unique_id=888732490]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Resturant" unique_id=836421800]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_kk3mq")
|
||||||
|
|
||||||
|
[node name="Door" parent="Resturant" unique_id=964400290 instance=ExtResource("10_l51r2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="Walls" type="Node3D" parent="Resturant" unique_id=1804204696]
|
||||||
|
|
||||||
|
[node name="Wall" parent="Resturant/Walls" unique_id=434181749 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall2" parent="Resturant/Walls" unique_id=1183111925 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall3" parent="Resturant/Walls" unique_id=1561473949 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall4" parent="Resturant/Walls" unique_id=1593528497 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall5" parent="Resturant/Walls" unique_id=2071060763 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall6" parent="Resturant/Walls" unique_id=1607012472 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall7" parent="Resturant/Walls" unique_id=990512055 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall8" parent="Resturant/Walls" unique_id=751907897 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.200001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall9" parent="Resturant/Walls" unique_id=358743133 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000004, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall10" parent="Resturant/Walls" unique_id=1374842161 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall11" parent="Resturant/Walls" unique_id=1408132826 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall12" parent="Resturant/Walls" unique_id=1937209307 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall13" parent="Resturant/Walls" unique_id=1714975985 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall14" parent="Resturant/Walls" unique_id=1732121903 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall15" parent="Resturant/Walls" unique_id=1311494308 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall16" parent="Resturant/Walls" unique_id=364484178 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall17" parent="Resturant/Walls" unique_id=485501605 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall18" parent="Resturant/Walls" unique_id=378206350 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall19" parent="Resturant/Walls" unique_id=294380188 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall20" parent="Resturant/Walls" unique_id=1122365254 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall21" parent="Resturant/Walls" unique_id=111446334 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall22" parent="Resturant/Walls" unique_id=999769595 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall23" parent="Resturant/Walls" unique_id=1832835858 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall24" parent="Resturant/Walls" unique_id=927052367 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall25" parent="Resturant/Walls" unique_id=1163278593 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall26" parent="Resturant/Walls" unique_id=1074868471 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall27" parent="Resturant/Walls" unique_id=510219954 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall28" parent="Resturant/Walls" unique_id=1615161517 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall29" parent="Resturant/Walls" unique_id=11605666 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall30" parent="Resturant/Walls" unique_id=2032513926 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall31" parent="Resturant/Walls" unique_id=1308803807 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall32" parent="Resturant/Walls" unique_id=493869823 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall33" parent="Resturant/Walls" unique_id=699535234 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall34" parent="Resturant/Walls" unique_id=238973326 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall35" parent="Resturant/Walls" unique_id=836717647 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall36" parent="Resturant/Walls" unique_id=446988148 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall37" parent="Resturant/Walls" unique_id=49950412 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall38" parent="Resturant/Walls" unique_id=607255208 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall39" parent="Resturant/Walls" unique_id=1089866573 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall40" parent="Resturant/Walls" unique_id=2078240231 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall41" parent="Resturant/Walls" unique_id=592669722 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall42" parent="Resturant/Walls" unique_id=1393176200 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall43" parent="Resturant/Walls" unique_id=1885346301 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall44" parent="Resturant/Walls" unique_id=2021916640 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall45" parent="Resturant/Walls" unique_id=1289086279 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall46" parent="Resturant/Walls" unique_id=396503450 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall47" parent="Resturant/Walls" unique_id=300373285 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall49" parent="Resturant/Walls" unique_id=1072273787 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall50" parent="Resturant/Walls" unique_id=896022741 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall51" parent="Resturant/Walls" unique_id=2089599721 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall52" parent="Resturant/Walls" unique_id=965479737 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall53" parent="Resturant/Walls" unique_id=43762332 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall54" parent="Resturant/Walls" unique_id=921007094 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall55" parent="Resturant/Walls" unique_id=2144411980 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall56" parent="Resturant/Walls" unique_id=370330637 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall57" parent="Resturant/Walls" unique_id=537562206 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall58" parent="Resturant/Walls" unique_id=1918288432 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall59" parent="Resturant/Walls" unique_id=944759951 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall60" parent="Resturant/Walls" unique_id=1128237563 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall61" parent="Resturant/Walls" unique_id=1755969864 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall62" parent="Resturant/Walls" unique_id=949006312 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall63" parent="Resturant/Walls" unique_id=1826688195 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall64" parent="Resturant/Walls" unique_id=116523059 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Wall65" parent="Resturant/Walls" unique_id=711153775 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall66" parent="Resturant/Walls" unique_id=741047 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall67" parent="Resturant/Walls" unique_id=664067327 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall68" parent="Resturant/Walls" unique_id=1294537251 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall69" parent="Resturant/Walls" unique_id=1152383 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall70" parent="Resturant/Walls" unique_id=1710172322 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall71" parent="Resturant/Walls" unique_id=597518110 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall72" parent="Resturant/Walls" unique_id=1028573693 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall73" parent="Resturant/Walls" unique_id=1232042046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall74" parent="Resturant/Walls" unique_id=1159091046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall75" parent="Resturant/Walls" unique_id=904470924 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall76" parent="Resturant/Walls" unique_id=1709758099 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall77" parent="Resturant/Walls" unique_id=1252446997 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall78" parent="Resturant/Walls" unique_id=1207579491 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall79" parent="Resturant/Walls" unique_id=1798073342 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall80" parent="Resturant/Walls" unique_id=36005990 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall81" parent="Resturant/Walls" unique_id=79516947 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall82" parent="Resturant/Walls" unique_id=1363235805 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Hatches" type="Node3D" parent="Resturant" unique_id=1561045769]
|
||||||
|
|
||||||
|
[node name="ServingCounter" parent="Resturant/Hatches" unique_id=1341321603 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter2" parent="Resturant/Hatches" unique_id=1325232371 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter3" parent="Resturant/Hatches" unique_id=539914523 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter4" parent="Resturant/Hatches" unique_id=2078770951 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter5" parent="Resturant/Hatches" unique_id=2019049083 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table2" parent="Resturant" unique_id=1457688277 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0.5999999, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hob" parent="Resturant" unique_id=172418174 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.2000003, 0.54, 1.7999992)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="Resturant" unique_id=980569400 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.200001, 0.54, 1.1999999)
|
||||||
|
|
||||||
|
[node name="Counter" parent="Resturant" unique_id=1487893288 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="Resturant" unique_id=5128912 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="Resturant" unique_id=1298458612 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.2000003, 0.54, 0.5999999)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="Resturant" unique_id=1764980142 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="Resturant" unique_id=1015820252 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="Resturant" unique_id=710538846 instance=ExtResource("15_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.6)
|
||||||
|
|
||||||
|
[node name="Sink" parent="Resturant" unique_id=2055277359 instance=ExtResource("16_u5c1m")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0.6, 0.48000002, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="Resturant" unique_id=2141915043 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742277e-08, 0, 1, 0, -8.742277e-08, 0, -1, 4.7683716e-07, 0.54, -0.6000006)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="Resturant" unique_id=235630131 instance=ExtResource("17_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="Resturant" unique_id=1720683779 instance=ExtResource("18_wvcs1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Table3" parent="Resturant" unique_id=1863572470 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(-1, 0, 2.6226832e-07, 0, 1, 0, -2.6226832e-07, 0, -1, 3, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hamburger" parent="." unique_id=1675596942 instance=ExtResource("11_c8vo7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8000001, -0.6)
|
||||||
|
|
||||||
|
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("12_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3800001, -0.6)
|
||||||
|
|
||||||
|
[node name="PickableObject" parent="." unique_id=1084951838 instance=ExtResource("13_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Chips" parent="." unique_id=1028364693 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Knife" parent="." unique_id=1789694138 instance=ExtResource("23_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 3)
|
||||||
|
|
||||||
|
[node name="Potato" parent="." unique_id=275760487 instance=ExtResource("24_u5c1m")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600005, 1.2, 2.2800002)
|
||||||
|
|
||||||
|
[node name="ChoppedPotato" parent="." unique_id=1564262551 instance=ExtResource("25_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9, 1.2, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Chips2" parent="." unique_id=2054749156 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600003, 1.2, 1.08)
|
||||||
@@ -0,0 +1,501 @@
|
|||||||
|
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://scenes/multiplayer_world.gd" id="1_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/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="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://q37nqadkibbp" path="res://scenes/door.tscn" id="10_l51r2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://items/hamburger.tscn" id="11_c8vo7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://da6yrsnxvsrif" path="res://scenes/wall.tscn" id="11_slo47"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="12_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bbg7dwsbxxh1t" path="res://scenes/cube_side_dispense.tscn" id="12_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="12_dpf3b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="13_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="13_yjosk"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="14_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="14_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="15_eoxxy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="15_qxyk8"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://scenes/GameOvercontroler.gd" id="16_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="16_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="17_y7baw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="18_wvcs1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://duwrbvwcqcuk3" path="res://items/chips.tscn" id="22_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dgk88esxip5xi" path="res://items/knife.tscn" id="23_qxyk8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://drwuhqb3pjtiy" path="res://items/potato.tscn" id="24_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bpvp20hiagxxb" path="res://items/chopped_potato.tscn" id="25_y7baw"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("7_n8fyw")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_irf4n")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.35, 0.12250001, 0.12250001, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_vlqg6"]
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(3, 0, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yqrpd"]
|
||||||
|
albedo_color = Color(0.35, 0.35, 0.35, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_kk3mq"]
|
||||||
|
material = SubResource("StandardMaterial3D_yqrpd")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(-3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_57ppd")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -1.8943893, 0.9667189, -4.301105)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=262398468]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1772076868]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=730717613]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, -0.003)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.6896921)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=1748373996 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.0913646)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 2.2925892)
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=1234658657 instance=ExtResource("14_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
|
scene = ExtResource("15_eoxxy")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=803158176]
|
||||||
|
script = ExtResource("16_n8fyw")
|
||||||
|
|
||||||
|
[node name="CubeSideDispenser2" parent="." unique_id=200950572 instance=ExtResource("12_57ppd")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.8484511, 0, 2.9119425)
|
||||||
|
|
||||||
|
[node name="Resturant" type="Node3D" parent="." unique_id=1083608050]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6212463e-05, -0.010500789, 0.0014204979)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="Resturant" unique_id=1814285538]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Resturant/StaticBody3D" unique_id=1661443874]
|
||||||
|
shape = SubResource("WorldBoundaryShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Resturant" unique_id=888732490]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Resturant" unique_id=836421800]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_kk3mq")
|
||||||
|
|
||||||
|
[node name="Door" parent="Resturant" unique_id=964400290 instance=ExtResource("10_l51r2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="Walls" type="Node3D" parent="Resturant" unique_id=1804204696]
|
||||||
|
|
||||||
|
[node name="Wall" parent="Resturant/Walls" unique_id=434181749 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall2" parent="Resturant/Walls" unique_id=1183111925 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall3" parent="Resturant/Walls" unique_id=1561473949 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall4" parent="Resturant/Walls" unique_id=1593528497 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall5" parent="Resturant/Walls" unique_id=2071060763 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall6" parent="Resturant/Walls" unique_id=1607012472 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall7" parent="Resturant/Walls" unique_id=990512055 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall8" parent="Resturant/Walls" unique_id=751907897 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.200001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall9" parent="Resturant/Walls" unique_id=358743133 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000004, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall10" parent="Resturant/Walls" unique_id=1374842161 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall11" parent="Resturant/Walls" unique_id=1408132826 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall12" parent="Resturant/Walls" unique_id=1937209307 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall13" parent="Resturant/Walls" unique_id=1714975985 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall14" parent="Resturant/Walls" unique_id=1732121903 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall15" parent="Resturant/Walls" unique_id=1311494308 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall16" parent="Resturant/Walls" unique_id=364484178 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall17" parent="Resturant/Walls" unique_id=485501605 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall18" parent="Resturant/Walls" unique_id=378206350 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall19" parent="Resturant/Walls" unique_id=294380188 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall20" parent="Resturant/Walls" unique_id=1122365254 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall21" parent="Resturant/Walls" unique_id=111446334 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall22" parent="Resturant/Walls" unique_id=999769595 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall23" parent="Resturant/Walls" unique_id=1832835858 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall24" parent="Resturant/Walls" unique_id=927052367 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall25" parent="Resturant/Walls" unique_id=1163278593 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall26" parent="Resturant/Walls" unique_id=1074868471 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall27" parent="Resturant/Walls" unique_id=510219954 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall28" parent="Resturant/Walls" unique_id=1615161517 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall29" parent="Resturant/Walls" unique_id=11605666 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall30" parent="Resturant/Walls" unique_id=2032513926 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall31" parent="Resturant/Walls" unique_id=1308803807 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall32" parent="Resturant/Walls" unique_id=493869823 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall33" parent="Resturant/Walls" unique_id=699535234 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall34" parent="Resturant/Walls" unique_id=238973326 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall35" parent="Resturant/Walls" unique_id=836717647 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall36" parent="Resturant/Walls" unique_id=446988148 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall37" parent="Resturant/Walls" unique_id=49950412 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall38" parent="Resturant/Walls" unique_id=607255208 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall39" parent="Resturant/Walls" unique_id=1089866573 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall40" parent="Resturant/Walls" unique_id=2078240231 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall41" parent="Resturant/Walls" unique_id=592669722 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall42" parent="Resturant/Walls" unique_id=1393176200 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall43" parent="Resturant/Walls" unique_id=1885346301 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall44" parent="Resturant/Walls" unique_id=2021916640 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall45" parent="Resturant/Walls" unique_id=1289086279 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall46" parent="Resturant/Walls" unique_id=396503450 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall47" parent="Resturant/Walls" unique_id=300373285 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall49" parent="Resturant/Walls" unique_id=1072273787 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall50" parent="Resturant/Walls" unique_id=896022741 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall51" parent="Resturant/Walls" unique_id=2089599721 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall52" parent="Resturant/Walls" unique_id=965479737 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall53" parent="Resturant/Walls" unique_id=43762332 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall54" parent="Resturant/Walls" unique_id=921007094 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall55" parent="Resturant/Walls" unique_id=2144411980 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall56" parent="Resturant/Walls" unique_id=370330637 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall57" parent="Resturant/Walls" unique_id=537562206 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall58" parent="Resturant/Walls" unique_id=1918288432 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall59" parent="Resturant/Walls" unique_id=944759951 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall60" parent="Resturant/Walls" unique_id=1128237563 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall61" parent="Resturant/Walls" unique_id=1755969864 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall62" parent="Resturant/Walls" unique_id=949006312 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall63" parent="Resturant/Walls" unique_id=1826688195 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall64" parent="Resturant/Walls" unique_id=116523059 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Wall65" parent="Resturant/Walls" unique_id=711153775 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall66" parent="Resturant/Walls" unique_id=741047 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall67" parent="Resturant/Walls" unique_id=664067327 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall68" parent="Resturant/Walls" unique_id=1294537251 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall69" parent="Resturant/Walls" unique_id=1152383 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall70" parent="Resturant/Walls" unique_id=1710172322 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall71" parent="Resturant/Walls" unique_id=597518110 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall72" parent="Resturant/Walls" unique_id=1028573693 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall73" parent="Resturant/Walls" unique_id=1232042046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall74" parent="Resturant/Walls" unique_id=1159091046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall75" parent="Resturant/Walls" unique_id=904470924 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall76" parent="Resturant/Walls" unique_id=1709758099 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall77" parent="Resturant/Walls" unique_id=1252446997 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall78" parent="Resturant/Walls" unique_id=1207579491 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall79" parent="Resturant/Walls" unique_id=1798073342 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall80" parent="Resturant/Walls" unique_id=36005990 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall81" parent="Resturant/Walls" unique_id=79516947 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall82" parent="Resturant/Walls" unique_id=1363235805 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Hatches" type="Node3D" parent="Resturant" unique_id=1561045769]
|
||||||
|
|
||||||
|
[node name="ServingCounter" parent="Resturant/Hatches" unique_id=1341321603 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter2" parent="Resturant/Hatches" unique_id=1325232371 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter3" parent="Resturant/Hatches" unique_id=539914523 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter4" parent="Resturant/Hatches" unique_id=2078770951 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter5" parent="Resturant/Hatches" unique_id=2019049083 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table2" parent="Resturant" unique_id=1457688277 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0.5999999, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hob" parent="Resturant" unique_id=172418174 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.2000003, 0.54, 1.7999992)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="Resturant" unique_id=980569400 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.200001, 0.54, 1.1999999)
|
||||||
|
|
||||||
|
[node name="Counter" parent="Resturant" unique_id=1487893288 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="Resturant" unique_id=5128912 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="Resturant" unique_id=1298458612 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.2000003, 0.54, 0.5999999)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="Resturant" unique_id=1764980142 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="Resturant" unique_id=1015820252 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="Resturant" unique_id=710538846 instance=ExtResource("15_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.6)
|
||||||
|
|
||||||
|
[node name="Sink" parent="Resturant" unique_id=2055277359 instance=ExtResource("16_u5c1m")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0.6, 0.48000002, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="Resturant" unique_id=2141915043 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742277e-08, 0, 1, 0, -8.742277e-08, 0, -1, 4.7683716e-07, 0.54, -0.6000006)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="Resturant" unique_id=235630131 instance=ExtResource("17_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="Resturant" unique_id=1720683779 instance=ExtResource("18_wvcs1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Table3" parent="Resturant" unique_id=1863572470 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(-1, 0, 2.6226832e-07, 0, 1, 0, -2.6226832e-07, 0, -1, 3, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hamburger" parent="." unique_id=1675596942 instance=ExtResource("11_c8vo7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8000001, -0.6)
|
||||||
|
|
||||||
|
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("12_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3800001, -0.6)
|
||||||
|
|
||||||
|
[node name="PickableObject" parent="." unique_id=1084951838 instance=ExtResource("13_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Chips" parent="." unique_id=1028364693 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Knife" parent="." unique_id=1789694138 instance=ExtResource("23_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 3)
|
||||||
|
|
||||||
|
[node name="Potato" parent="." unique_id=275760487 instance=ExtResource("24_u5c1m")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600005, 1.2, 2.2800002)
|
||||||
|
|
||||||
|
[node name="ChoppedPotato" parent="." unique_id=1564262551 instance=ExtResource("25_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9, 1.2, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Chips2" parent="." unique_id=2054749156 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600003, 1.2, 1.08)
|
||||||
@@ -0,0 +1,501 @@
|
|||||||
|
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://scenes/multiplayer_world.gd" id="1_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/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="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://q37nqadkibbp" path="res://scenes/door.tscn" id="10_l51r2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://items/hamburger.tscn" id="11_c8vo7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://da6yrsnxvsrif" path="res://scenes/wall.tscn" id="11_slo47"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="12_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bbg7dwsbxxh1t" path="res://scenes/cube_side_dispense.tscn" id="12_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="12_dpf3b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="13_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="13_yjosk"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="14_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="14_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="15_eoxxy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="15_qxyk8"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://scenes/GameOvercontroler.gd" id="16_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="16_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="17_y7baw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="18_wvcs1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://duwrbvwcqcuk3" path="res://items/chips.tscn" id="22_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dgk88esxip5xi" path="res://items/knife.tscn" id="23_qxyk8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://drwuhqb3pjtiy" path="res://items/potato.tscn" id="24_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bpvp20hiagxxb" path="res://items/chopped_potato.tscn" id="25_y7baw"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("7_n8fyw")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_irf4n")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.35, 0.12250001, 0.12250001, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_vlqg6"]
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(3, 0, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yqrpd"]
|
||||||
|
albedo_color = Color(0.35, 0.35, 0.35, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_kk3mq"]
|
||||||
|
material = SubResource("StandardMaterial3D_yqrpd")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(-3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_57ppd")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -1.8943893, 0.9667189, -4.301105)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=262398468]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1772076868]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=730717613]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, -0.003)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.6896921)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=1748373996 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.0913646)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 2.2925892)
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=1234658657 instance=ExtResource("14_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
|
scene = ExtResource("15_eoxxy")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=803158176]
|
||||||
|
script = ExtResource("16_n8fyw")
|
||||||
|
|
||||||
|
[node name="CubeSideDispenser2" parent="." unique_id=200950572 instance=ExtResource("12_57ppd")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.8484511, 0, 2.9119425)
|
||||||
|
|
||||||
|
[node name="Resturant" type="Node3D" parent="." unique_id=1083608050]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6212463e-05, -0.010500789, 0.0014204979)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="Resturant" unique_id=1814285538]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Resturant/StaticBody3D" unique_id=1661443874]
|
||||||
|
shape = SubResource("WorldBoundaryShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Resturant" unique_id=888732490]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Resturant" unique_id=836421800]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_kk3mq")
|
||||||
|
|
||||||
|
[node name="Door" parent="Resturant" unique_id=964400290 instance=ExtResource("10_l51r2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="Walls" type="Node3D" parent="Resturant" unique_id=1804204696]
|
||||||
|
|
||||||
|
[node name="Wall" parent="Resturant/Walls" unique_id=434181749 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall2" parent="Resturant/Walls" unique_id=1183111925 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall3" parent="Resturant/Walls" unique_id=1561473949 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall4" parent="Resturant/Walls" unique_id=1593528497 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall5" parent="Resturant/Walls" unique_id=2071060763 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall6" parent="Resturant/Walls" unique_id=1607012472 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall7" parent="Resturant/Walls" unique_id=990512055 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall8" parent="Resturant/Walls" unique_id=751907897 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.200001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall9" parent="Resturant/Walls" unique_id=358743133 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000004, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall10" parent="Resturant/Walls" unique_id=1374842161 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall11" parent="Resturant/Walls" unique_id=1408132826 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall12" parent="Resturant/Walls" unique_id=1937209307 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall13" parent="Resturant/Walls" unique_id=1714975985 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall14" parent="Resturant/Walls" unique_id=1732121903 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall15" parent="Resturant/Walls" unique_id=1311494308 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall16" parent="Resturant/Walls" unique_id=364484178 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall17" parent="Resturant/Walls" unique_id=485501605 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall18" parent="Resturant/Walls" unique_id=378206350 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall19" parent="Resturant/Walls" unique_id=294380188 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall20" parent="Resturant/Walls" unique_id=1122365254 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall21" parent="Resturant/Walls" unique_id=111446334 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall22" parent="Resturant/Walls" unique_id=999769595 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall23" parent="Resturant/Walls" unique_id=1832835858 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall24" parent="Resturant/Walls" unique_id=927052367 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall25" parent="Resturant/Walls" unique_id=1163278593 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall26" parent="Resturant/Walls" unique_id=1074868471 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall27" parent="Resturant/Walls" unique_id=510219954 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall28" parent="Resturant/Walls" unique_id=1615161517 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall29" parent="Resturant/Walls" unique_id=11605666 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall30" parent="Resturant/Walls" unique_id=2032513926 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall31" parent="Resturant/Walls" unique_id=1308803807 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall32" parent="Resturant/Walls" unique_id=493869823 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall33" parent="Resturant/Walls" unique_id=699535234 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall34" parent="Resturant/Walls" unique_id=238973326 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall35" parent="Resturant/Walls" unique_id=836717647 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall36" parent="Resturant/Walls" unique_id=446988148 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall37" parent="Resturant/Walls" unique_id=49950412 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall38" parent="Resturant/Walls" unique_id=607255208 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall39" parent="Resturant/Walls" unique_id=1089866573 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall40" parent="Resturant/Walls" unique_id=2078240231 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall41" parent="Resturant/Walls" unique_id=592669722 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall42" parent="Resturant/Walls" unique_id=1393176200 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall43" parent="Resturant/Walls" unique_id=1885346301 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall44" parent="Resturant/Walls" unique_id=2021916640 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall45" parent="Resturant/Walls" unique_id=1289086279 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall46" parent="Resturant/Walls" unique_id=396503450 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall47" parent="Resturant/Walls" unique_id=300373285 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall49" parent="Resturant/Walls" unique_id=1072273787 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall50" parent="Resturant/Walls" unique_id=896022741 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall51" parent="Resturant/Walls" unique_id=2089599721 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall52" parent="Resturant/Walls" unique_id=965479737 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall53" parent="Resturant/Walls" unique_id=43762332 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall54" parent="Resturant/Walls" unique_id=921007094 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall55" parent="Resturant/Walls" unique_id=2144411980 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall56" parent="Resturant/Walls" unique_id=370330637 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall57" parent="Resturant/Walls" unique_id=537562206 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall58" parent="Resturant/Walls" unique_id=1918288432 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall59" parent="Resturant/Walls" unique_id=944759951 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall60" parent="Resturant/Walls" unique_id=1128237563 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall61" parent="Resturant/Walls" unique_id=1755969864 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall62" parent="Resturant/Walls" unique_id=949006312 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall63" parent="Resturant/Walls" unique_id=1826688195 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall64" parent="Resturant/Walls" unique_id=116523059 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Wall65" parent="Resturant/Walls" unique_id=711153775 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall66" parent="Resturant/Walls" unique_id=741047 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall67" parent="Resturant/Walls" unique_id=664067327 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall68" parent="Resturant/Walls" unique_id=1294537251 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall69" parent="Resturant/Walls" unique_id=1152383 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall70" parent="Resturant/Walls" unique_id=1710172322 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall71" parent="Resturant/Walls" unique_id=597518110 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall72" parent="Resturant/Walls" unique_id=1028573693 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall73" parent="Resturant/Walls" unique_id=1232042046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall74" parent="Resturant/Walls" unique_id=1159091046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall75" parent="Resturant/Walls" unique_id=904470924 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall76" parent="Resturant/Walls" unique_id=1709758099 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall77" parent="Resturant/Walls" unique_id=1252446997 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall78" parent="Resturant/Walls" unique_id=1207579491 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall79" parent="Resturant/Walls" unique_id=1798073342 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall80" parent="Resturant/Walls" unique_id=36005990 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall81" parent="Resturant/Walls" unique_id=79516947 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall82" parent="Resturant/Walls" unique_id=1363235805 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Hatches" type="Node3D" parent="Resturant" unique_id=1561045769]
|
||||||
|
|
||||||
|
[node name="ServingCounter" parent="Resturant/Hatches" unique_id=1341321603 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter2" parent="Resturant/Hatches" unique_id=1325232371 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter3" parent="Resturant/Hatches" unique_id=539914523 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter4" parent="Resturant/Hatches" unique_id=2078770951 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter5" parent="Resturant/Hatches" unique_id=2019049083 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table2" parent="Resturant" unique_id=1457688277 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0.5999999, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hob" parent="Resturant" unique_id=172418174 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.2000003, 0.54, 1.7999992)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="Resturant" unique_id=980569400 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.200001, 0.54, 1.1999999)
|
||||||
|
|
||||||
|
[node name="Counter" parent="Resturant" unique_id=1487893288 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="Resturant" unique_id=5128912 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="Resturant" unique_id=1298458612 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.2000003, 0.54, 0.5999999)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="Resturant" unique_id=1764980142 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="Resturant" unique_id=1015820252 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="Resturant" unique_id=710538846 instance=ExtResource("15_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.6)
|
||||||
|
|
||||||
|
[node name="Sink" parent="Resturant" unique_id=2055277359 instance=ExtResource("16_u5c1m")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0.6, 0.48000002, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="Resturant" unique_id=2141915043 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742277e-08, 0, 1, 0, -8.742277e-08, 0, -1, 4.7683716e-07, 0.54, -0.6000006)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="Resturant" unique_id=235630131 instance=ExtResource("17_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="Resturant" unique_id=1720683779 instance=ExtResource("18_wvcs1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Table3" parent="Resturant" unique_id=1863572470 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(-1, 0, 2.6226832e-07, 0, 1, 0, -2.6226832e-07, 0, -1, 3, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hamburger" parent="." unique_id=1675596942 instance=ExtResource("11_c8vo7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8000001, -0.6)
|
||||||
|
|
||||||
|
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("12_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3800001, -0.6)
|
||||||
|
|
||||||
|
[node name="PickableObject" parent="." unique_id=1084951838 instance=ExtResource("13_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Chips" parent="." unique_id=1028364693 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Knife" parent="." unique_id=1789694138 instance=ExtResource("23_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 3)
|
||||||
|
|
||||||
|
[node name="Potato" parent="." unique_id=275760487 instance=ExtResource("24_u5c1m")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600005, 1.2, 2.2800002)
|
||||||
|
|
||||||
|
[node name="ChoppedPotato" parent="." unique_id=1564262551 instance=ExtResource("25_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9, 1.2, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Chips2" parent="." unique_id=2054749156 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600003, 1.2, 1.08)
|
||||||
@@ -0,0 +1,501 @@
|
|||||||
|
[gd_scene format=3 uid="uid://do6mrslyqe5qe"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://scenes/multiplayer_world.gd" id="1_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/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="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="7_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://q37nqadkibbp" path="res://scenes/door.tscn" id="10_l51r2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b3m2ag8g5rj4r" path="res://items/hamburger.tscn" id="11_c8vo7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://da6yrsnxvsrif" path="res://scenes/wall.tscn" id="11_slo47"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="12_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bbg7dwsbxxh1t" path="res://scenes/cube_side_dispense.tscn" id="12_57ppd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="12_dpf3b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="13_1f3bw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="13_yjosk"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="14_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="14_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="15_di04w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="15_eoxxy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="15_qxyk8"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://scenes/GameOvercontroler.gd" id="16_n8fyw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="16_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="17_y7baw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="18_wvcs1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://duwrbvwcqcuk3" path="res://items/chips.tscn" id="22_2ndvi"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dgk88esxip5xi" path="res://items/knife.tscn" id="23_qxyk8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://drwuhqb3pjtiy" path="res://items/potato.tscn" id="24_u5c1m"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bpvp20hiagxxb" path="res://items/chopped_potato.tscn" id="25_y7baw"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("7_n8fyw")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_irf4n")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_24d3s"]
|
||||||
|
albedo_color = Color(0.35, 0.12250001, 0.12250001, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_vlqg6"]
|
||||||
|
material = SubResource("StandardMaterial3D_24d3s")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(3, 0, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yqrpd"]
|
||||||
|
albedo_color = Color(0.35, 0.35, 0.35, 1)
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_kk3mq"]
|
||||||
|
material = SubResource("StandardMaterial3D_yqrpd")
|
||||||
|
size = Vector2(6, 10)
|
||||||
|
center_offset = Vector3(-3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_57ppd")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_o1b3t")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -1.8943893, 0.9667189, -4.301105)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=262398468]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1772076868]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=730717613]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=2051771581]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=619815427]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, -0.003)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Counter2" parent="." unique_id=368890752 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.6896921)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="." unique_id=1748373996 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 1.0913646)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="." unique_id=1498817646 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -3.9477215, 0.5115016, 2.2925892)
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=1234658657 instance=ExtResource("14_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
|
scene = ExtResource("15_eoxxy")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=803158176]
|
||||||
|
script = ExtResource("16_n8fyw")
|
||||||
|
|
||||||
|
[node name="CubeSideDispenser2" parent="." unique_id=200950572 instance=ExtResource("12_57ppd")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.8484511, 0, 2.9119425)
|
||||||
|
|
||||||
|
[node name="Resturant" type="Node3D" parent="." unique_id=1083608050]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6212463e-05, -0.010500789, 0.0014204979)
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="Resturant" unique_id=1814285538]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Resturant/StaticBody3D" unique_id=1661443874]
|
||||||
|
shape = SubResource("WorldBoundaryShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Resturant" unique_id=888732490]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Resturant" unique_id=836421800]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0.01, 0)
|
||||||
|
mesh = SubResource("PlaneMesh_kk3mq")
|
||||||
|
|
||||||
|
[node name="Door" parent="Resturant" unique_id=964400290 instance=ExtResource("10_l51r2")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="Walls" type="Node3D" parent="Resturant" unique_id=1804204696]
|
||||||
|
|
||||||
|
[node name="Wall" parent="Resturant/Walls" unique_id=434181749 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall2" parent="Resturant/Walls" unique_id=1183111925 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall3" parent="Resturant/Walls" unique_id=1561473949 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall4" parent="Resturant/Walls" unique_id=1593528497 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall5" parent="Resturant/Walls" unique_id=2071060763 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall6" parent="Resturant/Walls" unique_id=1607012472 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall7" parent="Resturant/Walls" unique_id=990512055 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall8" parent="Resturant/Walls" unique_id=751907897 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.200001, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall9" parent="Resturant/Walls" unique_id=358743133 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000004, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall10" parent="Resturant/Walls" unique_id=1374842161 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall11" parent="Resturant/Walls" unique_id=1408132826 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 0)
|
||||||
|
|
||||||
|
[node name="Wall12" parent="Resturant/Walls" unique_id=1937209307 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall13" parent="Resturant/Walls" unique_id=1714975985 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall14" parent="Resturant/Walls" unique_id=1732121903 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall15" parent="Resturant/Walls" unique_id=1311494308 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall16" parent="Resturant/Walls" unique_id=364484178 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall17" parent="Resturant/Walls" unique_id=485501605 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall18" parent="Resturant/Walls" unique_id=378206350 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall19" parent="Resturant/Walls" unique_id=294380188 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall20" parent="Resturant/Walls" unique_id=1122365254 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall21" parent="Resturant/Walls" unique_id=111446334 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall22" parent="Resturant/Walls" unique_id=999769595 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall23" parent="Resturant/Walls" unique_id=1832835858 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall24" parent="Resturant/Walls" unique_id=927052367 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall25" parent="Resturant/Walls" unique_id=1163278593 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall26" parent="Resturant/Walls" unique_id=1074868471 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall27" parent="Resturant/Walls" unique_id=510219954 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall28" parent="Resturant/Walls" unique_id=1615161517 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, -6)
|
||||||
|
|
||||||
|
[node name="Wall29" parent="Resturant/Walls" unique_id=11605666 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.60000014, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall30" parent="Resturant/Walls" unique_id=2032513926 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.3841858e-07, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall31" parent="Resturant/Walls" unique_id=1308803807 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall32" parent="Resturant/Walls" unique_id=493869823 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall33" parent="Resturant/Walls" unique_id=699535234 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall34" parent="Resturant/Walls" unique_id=238973326 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.3999999, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall35" parent="Resturant/Walls" unique_id=836717647 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.9999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall36" parent="Resturant/Walls" unique_id=446988148 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.6, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall37" parent="Resturant/Walls" unique_id=49950412 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall38" parent="Resturant/Walls" unique_id=607255208 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1999998, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall39" parent="Resturant/Walls" unique_id=1089866573 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.6000001, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall40" parent="Resturant/Walls" unique_id=2078240231 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.0000002, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall41" parent="Resturant/Walls" unique_id=592669722 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall42" parent="Resturant/Walls" unique_id=1393176200 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2000003, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall43" parent="Resturant/Walls" unique_id=1885346301 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall44" parent="Resturant/Walls" unique_id=2021916640 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.2, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall45" parent="Resturant/Walls" unique_id=1289086279 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.8, 0, 6)
|
||||||
|
|
||||||
|
[node name="Wall46" parent="Resturant/Walls" unique_id=396503450 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall47" parent="Resturant/Walls" unique_id=300373285 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall49" parent="Resturant/Walls" unique_id=1072273787 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall50" parent="Resturant/Walls" unique_id=896022741 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall51" parent="Resturant/Walls" unique_id=2089599721 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall52" parent="Resturant/Walls" unique_id=965479737 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall53" parent="Resturant/Walls" unique_id=43762332 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall54" parent="Resturant/Walls" unique_id=921007094 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall55" parent="Resturant/Walls" unique_id=2144411980 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall56" parent="Resturant/Walls" unique_id=370330637 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall57" parent="Resturant/Walls" unique_id=537562206 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall58" parent="Resturant/Walls" unique_id=1918288432 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall59" parent="Resturant/Walls" unique_id=944759951 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall60" parent="Resturant/Walls" unique_id=1128237563 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall61" parent="Resturant/Walls" unique_id=1755969864 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall62" parent="Resturant/Walls" unique_id=949006312 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall63" parent="Resturant/Walls" unique_id=1826688195 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall64" parent="Resturant/Walls" unique_id=116523059 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.8000007, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Wall65" parent="Resturant/Walls" unique_id=711153775 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.2000003)
|
||||||
|
|
||||||
|
[node name="Wall66" parent="Resturant/Walls" unique_id=741047 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 0.6000004)
|
||||||
|
|
||||||
|
[node name="Wall67" parent="Resturant/Walls" unique_id=664067327 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 1.8000002)
|
||||||
|
|
||||||
|
[node name="Wall68" parent="Resturant/Walls" unique_id=1294537251 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 2.4000006)
|
||||||
|
|
||||||
|
[node name="Wall69" parent="Resturant/Walls" unique_id=1152383 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.7999992)
|
||||||
|
|
||||||
|
[node name="Wall70" parent="Resturant/Walls" unique_id=1710172322 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -2.3999996)
|
||||||
|
|
||||||
|
[node name="Wall71" parent="Resturant/Walls" unique_id=597518110 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3)
|
||||||
|
|
||||||
|
[node name="Wall72" parent="Resturant/Walls" unique_id=1028573693 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -1.1999998)
|
||||||
|
|
||||||
|
[node name="Wall73" parent="Resturant/Walls" unique_id=1232042046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, -0.5999994)
|
||||||
|
|
||||||
|
[node name="Wall74" parent="Resturant/Walls" unique_id=1159091046 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.2000003)
|
||||||
|
|
||||||
|
[node name="Wall75" parent="Resturant/Walls" unique_id=904470924 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.6000004)
|
||||||
|
|
||||||
|
[node name="Wall76" parent="Resturant/Walls" unique_id=1709758099 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 3.0000002)
|
||||||
|
|
||||||
|
[node name="Wall77" parent="Resturant/Walls" unique_id=1252446997 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 4.8000007)
|
||||||
|
|
||||||
|
[node name="Wall78" parent="Resturant/Walls" unique_id=1207579491 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.8, 0, 5.4000006)
|
||||||
|
|
||||||
|
[node name="Wall79" parent="Resturant/Walls" unique_id=1798073342 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -3.5999994)
|
||||||
|
|
||||||
|
[node name="Wall80" parent="Resturant/Walls" unique_id=36005990 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.2)
|
||||||
|
|
||||||
|
[node name="Wall81" parent="Resturant/Walls" unique_id=79516947 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -4.799999)
|
||||||
|
|
||||||
|
[node name="Wall82" parent="Resturant/Walls" unique_id=1363235805 instance=ExtResource("11_slo47")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 4.7999997, 0, -5.3999996)
|
||||||
|
|
||||||
|
[node name="Hatches" type="Node3D" parent="Resturant" unique_id=1561045769]
|
||||||
|
|
||||||
|
[node name="ServingCounter" parent="Resturant/Hatches" unique_id=1341321603 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter2" parent="Resturant/Hatches" unique_id=1325232371 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8000001, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter3" parent="Resturant/Hatches" unique_id=539914523 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter4" parent="Resturant/Hatches" unique_id=2078770951 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.4, 0, 0)
|
||||||
|
|
||||||
|
[node name="ServingCounter5" parent="Resturant/Hatches" unique_id=2019049083 instance=ExtResource("12_dpf3b")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table2" parent="Resturant" unique_id=1457688277 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0.5999999, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hob" parent="Resturant" unique_id=172418174 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.2000003, 0.54, 1.7999992)
|
||||||
|
|
||||||
|
[node name="Hob2" parent="Resturant" unique_id=980569400 instance=ExtResource("14_2ndvi")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, -1, 0, 1, 0, 1, 0, 1.3113416e-07, 4.200001, 0.54, 1.1999999)
|
||||||
|
|
||||||
|
[node name="Counter" parent="Resturant" unique_id=1487893288 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter2" parent="Resturant" unique_id=5128912 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.200001, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="Counter3" parent="Resturant" unique_id=1298458612 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 4.2000003, 0.54, 0.5999999)
|
||||||
|
|
||||||
|
[node name="Counter4" parent="Resturant" unique_id=1764980142 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 2.3999996)
|
||||||
|
|
||||||
|
[node name="Counter5" parent="Resturant" unique_id=1015820252 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(1.3113416e-07, 0, 1, 0, 1, 0, -1, 0, 1.3113416e-07, 4.7683716e-07, 0.54, 3)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="Resturant" unique_id=710538846 instance=ExtResource("15_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.6)
|
||||||
|
|
||||||
|
[node name="Sink" parent="Resturant" unique_id=2055277359 instance=ExtResource("16_u5c1m")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0.6, 0.48000002, -0.6)
|
||||||
|
|
||||||
|
[node name="Counter6" parent="Resturant" unique_id=2141915043 instance=ExtResource("15_di04w")]
|
||||||
|
transform = Transform3D(-1, 0, 8.742277e-08, 0, 1, 0, -8.742277e-08, 0, -1, 4.7683716e-07, 0.54, -0.6000006)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="Resturant" unique_id=235630131 instance=ExtResource("17_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.2)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="Resturant" unique_id=1720683779 instance=ExtResource("18_wvcs1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Table3" parent="Resturant" unique_id=1863572470 instance=ExtResource("13_yjosk")]
|
||||||
|
transform = Transform3D(-1, 0, 2.6226832e-07, 0, 1, 0, -2.6226832e-07, 0, -1, 3, 0.48000002, -3)
|
||||||
|
thinking_duration = null
|
||||||
|
ordering_duration = null
|
||||||
|
primary_duration = null
|
||||||
|
friend_duration = null
|
||||||
|
eating_duration = null
|
||||||
|
|
||||||
|
[node name="Hamburger" parent="." unique_id=1675596942 instance=ExtResource("11_c8vo7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8000001, -0.6)
|
||||||
|
|
||||||
|
[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("12_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3800001, -0.6)
|
||||||
|
|
||||||
|
[node name="PickableObject" parent="." unique_id=1084951838 instance=ExtResource("13_1f3bw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Chips" parent="." unique_id=1028364693 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 1.2, -0.6)
|
||||||
|
|
||||||
|
[node name="Knife" parent="." unique_id=1789694138 instance=ExtResource("23_qxyk8")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 3)
|
||||||
|
|
||||||
|
[node name="Potato" parent="." unique_id=275760487 instance=ExtResource("24_u5c1m")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600005, 1.2, 2.2800002)
|
||||||
|
|
||||||
|
[node name="ChoppedPotato" parent="." unique_id=1564262551 instance=ExtResource("25_y7baw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9, 1.2, 1.8000001)
|
||||||
|
|
||||||
|
[node name="Chips2" parent="." unique_id=2054749156 instance=ExtResource("22_2ndvi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.9600003, 1.2, 1.08)
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
class_name DayController
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
# DayController Emits singals to spawn customers.
|
||||||
|
|
||||||
|
var day_time_remaining: float = 0.0
|
||||||
|
var customers_spawned: int = 0
|
||||||
|
var customers_served: int = 0
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
GameManager.set_game_state(GameManager.GameState.BUILDING)
|
||||||
|
Signals.game_state_changed.connect(_on_game_state_changed)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_game_state_changed(new_state: GameManager.GameState) -> void:
|
||||||
|
if new_state == GameManager.GameState.RUNNING:
|
||||||
|
start_next_day()
|
||||||
|
|
||||||
|
|
||||||
|
# Returns 0-1 progress of the day time
|
||||||
|
func get_day_progression() -> float:
|
||||||
|
return 1 - (day_time_remaining / GameManager.day_length_seconds)
|
||||||
|
|
||||||
|
|
||||||
|
func _reset_values() -> void:
|
||||||
|
day_time_remaining = GameManager.day_length_seconds
|
||||||
|
customers_spawned = 0
|
||||||
|
customers_served = 0
|
||||||
|
|
||||||
|
|
||||||
|
func start_next_day() -> void:
|
||||||
|
SweetLogger.info("Starting next day")
|
||||||
|
_reset_values()
|
||||||
|
GameManager.set_customers_per_day(GameManager.customers_per_day + GameManager.customers_count_increase_per_day)
|
||||||
|
GameManager.set_day_number(GameManager.day_number + 1)
|
||||||
|
|
||||||
|
|
||||||
|
func finish_current_day() -> void:
|
||||||
|
SweetLogger.info("Finishing current day")
|
||||||
|
_reset_values()
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if GameManager.game_state != GameManager.GameState.RUNNING:
|
||||||
|
return
|
||||||
|
|
||||||
|
day_time_remaining -= delta
|
||||||
|
var customers_at_this_time = GameManager.customers_per_day * get_day_progression()
|
||||||
|
#print("DayController: customers_at_this_time: ", customers_at_this_time)
|
||||||
|
if customers_spawned < customers_at_this_time:
|
||||||
|
customers_spawned += 1
|
||||||
|
SweetLogger.debug("Spawning customer")
|
||||||
|
Signals.request_customer_spawn.emit()
|
||||||
|
# If day complete
|
||||||
|
if GameManager.customers_per_day == customers_served and customers_spawned == GameManager.customers_per_day:
|
||||||
|
SweetLogger.info("Day complete")
|
||||||
|
finish_current_day()
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
[gd_scene format=3 uid="uid://c1nv4w33fedj6"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://Net/multiplayer_world.gd" id="1_jfr2g"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/XROrigin.tscn" id="2_8wkh3"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="3_m56cs"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="5_l1qm6"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="16_vp"]
|
||||||
|
[ext_resource type="PackedScene" path="res://UI/main_menu_panel.tscn" id="17_panel"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(115, 0.1, 15)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_m56cs")
|
||||||
|
size = Vector3(15, 0.1, 15)
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("5_l1qm6")
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_jfr2g")
|
||||||
|
populate_from_layout = false
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_8wkh3")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.36171648, 0, 0.81835127)
|
||||||
|
|
||||||
|
[node name="MainMenuPanel3D" parent="." unique_id=1448860532 instance=ExtResource("16_vp")]
|
||||||
|
transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 5, 0.36171648, 2.0238447, -1.9758987)
|
||||||
|
screen_size = Vector2(0.6, 0.4)
|
||||||
|
scene = ExtResource("17_panel")
|
||||||
|
viewport_size = Vector2(600, 400)
|
||||||
|
transparent = 1
|
||||||
|
scene_properties_keys = PackedStringArray("main_menu_panel.gd")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=1660879286]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=494935131]
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
[gd_scene format=3 uid="uid://c30i6h32w8p47"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://Net/multiplayer_world.gd" id="1_kdan8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/XROrigin.tscn" id="2_g30gi"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="3_75ecy"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="5_c3xgf"]
|
||||||
|
[ext_resource type="Script" uid="uid://fyd2rjramhbb" path="res://prefabs/kitchen_instantiator.gd" id="6_pw2j5"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://damrxtlt7uswf" path="res://content/station_layouts/small_line.tscn" id="7_0sjqq"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dm70ynyuw1a5u" path="res://prefabs/day_controller.tscn" id="9_5wx0o"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bnwb7imcotkod" path="res://prefabs/build_mode_controller.tscn" id="10_464r1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://3i1xb74cfsh5" path="res://test/vr_spectator_camera.tscn" id="11_5wx0o"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dxe05wp60jg3l" path="res://scenes/queue_controller.tscn" id="11_de1dy"]
|
||||||
|
[ext_resource type="Script" uid="uid://biu4qr3nr1eny" path="res://test/mp_test_driver.gd" id="99_mptst"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(15, 0.1, 15)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("3_75ecy")
|
||||||
|
size = Vector3(15, 0.1, 15)
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("5_c3xgf")
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_arao0"]
|
||||||
|
size = Vector3(15, 20, 0.1)
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_464r1"]
|
||||||
|
metadata/__load_path__ = "res://stations/Hob_old.tscn"
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607 node_paths=PackedStringArray("items_spawner", "players_spawner")]
|
||||||
|
script = ExtResource("1_kdan8")
|
||||||
|
items_spawner = NodePath("ItemsSpawner")
|
||||||
|
players_spawner = NodePath("PlayersSpawner")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 groups=["local_xr_origin"] instance=ExtResource("2_g30gi")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.36171648, 0, 0.81835127)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00018164515, 0.0006352663, -0.002532661)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=291550153]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=1595463693]
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=627119248]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=106645565]
|
||||||
|
_spawnable_scenes = PackedStringArray("uid://c58ns7csdahjy")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=4404969]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=998476672]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9.197384, 7.589958)
|
||||||
|
shape = SubResource("BoxShape3D_arao0")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D" unique_id=340303902]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9.197384, -7.509142)
|
||||||
|
shape = SubResource("BoxShape3D_arao0")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D" unique_id=1193703037]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -7.438612, 9.197384, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_arao0")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D" unique_id=1431367494]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 7.502467, 9.197384, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_arao0")
|
||||||
|
|
||||||
|
[node name="TestDriver" type="Node" parent="." unique_id=580575192]
|
||||||
|
script = ExtResource("99_mptst")
|
||||||
|
|
||||||
|
[node name="KitchenInstantiator" type="Node3D" parent="." unique_id=1328198547]
|
||||||
|
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0, 0, -1.2)
|
||||||
|
script = ExtResource("6_pw2j5")
|
||||||
|
kitchen_scene = ExtResource("7_0sjqq")
|
||||||
|
hob_scene = SubResource("Resource_464r1")
|
||||||
|
|
||||||
|
[node name="DayController" parent="." unique_id=1418639156 instance=ExtResource("9_5wx0o")]
|
||||||
|
|
||||||
|
[node name="BuildModeController" parent="." unique_id=552013109 instance=ExtResource("10_464r1")]
|
||||||
|
|
||||||
|
[node name="QueueController" parent="." unique_id=326512876 instance=ExtResource("11_de1dy")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 7.2000003)
|
||||||
|
|
||||||
|
[node name="VRSpectatorCamera" parent="." unique_id=310823561 instance=ExtResource("11_5wx0o")]
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,63 @@
|
|||||||
|
class_name QueueController
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
@export var queue_patience: float = 120
|
||||||
|
|
||||||
|
@export var progress_bar_3d: ProgressBar3D
|
||||||
|
@export var label_3d: Label3D
|
||||||
|
|
||||||
|
|
||||||
|
var _customers: Array[float] = [] # Temp. Array of their patience
|
||||||
|
var _tables: Array[Node3D] = []
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
progress_bar_3d.override_fill_color(Color.YELLOW)
|
||||||
|
progress_bar_3d.exponential = true
|
||||||
|
Signals.request_customer_spawn.connect(_on_request_customer_spawn)
|
||||||
|
Signals.game_state_changed.connect(_on_game_state_changed)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_game_state_changed(new_state: GameManager.GameState) -> void:
|
||||||
|
if new_state == GameManager.GameState.RUNNING:
|
||||||
|
_rebuild_table_list()
|
||||||
|
|
||||||
|
func _on_request_customer_spawn() -> void:
|
||||||
|
spawn_customer()
|
||||||
|
|
||||||
|
|
||||||
|
func spawn_customer() -> void:
|
||||||
|
_customers.append(queue_patience)
|
||||||
|
|
||||||
|
|
||||||
|
func _rebuild_table_list() -> void:
|
||||||
|
_tables.clear()
|
||||||
|
_tables.append_array(get_tree().get_nodes_in_group("table"))
|
||||||
|
SweetLogger.debug("Rebuild table list complete: {0}", [_tables])
|
||||||
|
|
||||||
|
|
||||||
|
func _try_to_assign_customers() -> void:
|
||||||
|
for customer in _customers:
|
||||||
|
for table: Table in _tables:
|
||||||
|
var result: bool = table.try_consume_customer()
|
||||||
|
if result == true:
|
||||||
|
_customers.pop_front()
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
# Process customers patience
|
||||||
|
for i in range(0, _customers.size()):
|
||||||
|
_customers[i] -= delta
|
||||||
|
if _customers[i] <= 0:
|
||||||
|
GameManager.game_over()
|
||||||
|
|
||||||
|
_try_to_assign_customers()
|
||||||
|
|
||||||
|
# Update visuals
|
||||||
|
if not _customers.is_empty():
|
||||||
|
label_3d.text = "Customers in queue: " + str(_customers.size())
|
||||||
|
progress_bar_3d.set_progress(_customers.front() / queue_patience)
|
||||||
|
else:
|
||||||
|
progress_bar_3d.set_progress(0)
|
||||||
|
label_3d.text = "No Customers"
|
||||||
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dxe05wp60jg3l"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://dww2icfivdsai" path="res://scenes/queue_controller.gd" id="1_ieivv"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bxbocxdaayvwx" path="res://UI/progress_bar.tscn" id="2_fn3y7"]
|
||||||
|
|
||||||
|
[node name="QueueController" type="Node3D" unique_id=326512876 node_paths=PackedStringArray("progress_bar_3d", "label_3d")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
|
||||||
|
script = ExtResource("1_ieivv")
|
||||||
|
progress_bar_3d = NodePath("ProgressBar3D")
|
||||||
|
label_3d = NodePath("Label3D")
|
||||||
|
|
||||||
|
[node name="ProgressBar3D" parent="." unique_id=654673176 instance=ExtResource("2_fn3y7")]
|
||||||
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2.4, 0)
|
||||||
|
exponential = true
|
||||||
|
|
||||||
|
[node name="Label3D" type="Label3D" parent="." unique_id=994715754]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.147749, 0)
|
||||||
|
text = "X customers in queue"
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dbgu4r127ke5v"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://Net/multiplayer_world.gd" id="1_atgwk"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="2_1jq86"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/XROrigin.tscn" id="3_bryd6"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="4_kpgm6"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob_old.tscn" id="5_gfdi7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="7_jnxsa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bnwb7imcotkod" path="res://prefabs/build_mode_controller.tscn" id="9_hooyg"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="11_gaw43"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cwnwo4i28upap" path="res://stations/raw_burger_dispenser.tscn" id="12_hooyg"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="12_n58f2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c6rift56ql3f8" path="res://stations/BurgerBunsDispenser.tscn" id="13_cqmpj"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="13_hooyg"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ck5tuftqmyiue" path="res://stations/plate_dispenser.tscn" id="14_bjwcu"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://prefabs/GameOvercontroler.gd" id="14_cqmpj"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dxe05wp60jg3l" path="res://scenes/queue_controller.tscn" id="15_cqmpj"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dm70ynyuw1a5u" path="res://prefabs/day_controller.tscn" id="17_bjwcu"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("2_1jq86")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("4_kpgm6")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_atgwk")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("3_bryd6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9667189, 2.4)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=1945394545]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=177940558]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=1243299496]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=201060343]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=1840881658]
|
||||||
|
_spawnable_scenes = PackedStringArray("uid://c58ns7csdahjy")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=522901881 instance=ExtResource("12_n58f2")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 2.7718225, 2.8122003, 1.8000003)
|
||||||
|
scene = ExtResource("13_hooyg")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=1442195864]
|
||||||
|
script = ExtResource("14_cqmpj")
|
||||||
|
|
||||||
|
[node name="BuildModeController" parent="." unique_id=552013109 instance=ExtResource("9_hooyg")]
|
||||||
|
|
||||||
|
[node name="QueueController" parent="." unique_id=326512876 instance=ExtResource("15_cqmpj")]
|
||||||
|
transform = Transform3D(-1, 0, -1.509958e-07, 0, 1, 0, 1.509958e-07, 0, -1, -1.2, 0, 4.8)
|
||||||
|
|
||||||
|
[node name="DayController" parent="." unique_id=1418639156 instance=ExtResource("17_bjwcu")]
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00018164515, 0.0006352663, -0.002532661)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("5_gfdi7")]
|
||||||
|
|
||||||
|
[node name="Counter" parent="." unique_id=1487893288 instance=ExtResource("7_jnxsa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0, 0)
|
||||||
|
|
||||||
|
[node name="Table" parent="." unique_id=1863572470 instance=ExtResource("11_gaw43")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 1.8)
|
||||||
|
|
||||||
|
[node name="Table2" parent="." unique_id=987495548 instance=ExtResource("11_gaw43")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 2.4)
|
||||||
|
|
||||||
|
[node name="Table3" parent="." unique_id=113648557 instance=ExtResource("11_gaw43")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8, 0, 3)
|
||||||
|
|
||||||
|
[node name="RawBurgerDispenser" parent="." unique_id=383615587 instance=ExtResource("12_hooyg")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0)
|
||||||
|
|
||||||
|
[node name="BurgerBunsDispenser" parent="." unique_id=1410160280 instance=ExtResource("13_cqmpj")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="PlateDispenser" parent="." unique_id=53391541 instance=ExtResource("14_bjwcu")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8000001, 0, 0.6)
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
[gd_scene format=3 uid="uid://dbgu4r127ke5v"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d1cefhe3yyyds" path="res://scenes/multiplayer_world.gd" id="1_atgwk"]
|
||||||
|
[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="2_1jq86"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://prefabs/XROrigin.tscn" id="3_bryd6"]
|
||||||
|
[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="4_kpgm6"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="5_gfdi7"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="7_jnxsa"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://drwuhqb3pjtiy" path="res://items/potato.tscn" id="8_1qeqw"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dlw5geheupgpt" path="res://stations/hatch.tscn" id="8_atgwk"]
|
||||||
|
[ext_resource type="Script" uid="uid://bsdpd18i1i17s" path="res://prefabs/build_mode_controller.gd" id="9_atgwk"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dvrk268s7gkxh" path="res://stations/sink.tscn" id="10_dhas4"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://caf0xanmxbshy" path="res://stations/table.tscn" id="11_gaw43"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="12_n58f2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://xtcei2uvd5li" path="res://UI/game_over_panel.tscn" id="13_hooyg"]
|
||||||
|
[ext_resource type="Script" uid="uid://cwijoksyou1ey" path="res://scenes/GameOvercontroler.gd" id="14_cqmpj"]
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_bvwq1"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = ExtResource("2_1jq86")
|
||||||
|
ambient_light_source = 3
|
||||||
|
ambient_light_color = Color(1, 1, 1, 1)
|
||||||
|
ambient_light_sky_contribution = 0.9
|
||||||
|
reflected_light_source = 2
|
||||||
|
ssr_enabled = true
|
||||||
|
ssao_enabled = true
|
||||||
|
ssil_enabled = true
|
||||||
|
sdfgi_enabled = true
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
|
material = ExtResource("4_kpgm6")
|
||||||
|
size = Vector3(20, 0.1, 20)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
size = Vector3(20, 10, 0.1)
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
|
script = ExtResource("1_atgwk")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250]
|
||||||
|
environment = SubResource("Environment_bvwq1")
|
||||||
|
|
||||||
|
[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("3_bryd6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9667189, 2.4)
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384]
|
||||||
|
transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="WorldContent" type="Node3D" parent="." unique_id=1945394545]
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="." unique_id=177940558]
|
||||||
|
|
||||||
|
[node name="Stations" type="Node3D" parent="." unique_id=1243299496]
|
||||||
|
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1.8000001, 0, 1.8000001)
|
||||||
|
|
||||||
|
[node name="ItemsSpawner" type="MultiplayerSpawner" parent="." unique_id=201060343]
|
||||||
|
spawn_path = NodePath("../WorldContent")
|
||||||
|
|
||||||
|
[node name="PlayersSpawner" type="MultiplayerSpawner" parent="." unique_id=1840881658]
|
||||||
|
_spawnable_scenes = PackedStringArray("res://Player/net_player.tscn")
|
||||||
|
spawn_path = NodePath("../Players")
|
||||||
|
|
||||||
|
[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648]
|
||||||
|
shape = SubResource("BoxShape3D_vlqg6")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00018164515, 0.0006352663, -0.002532661)
|
||||||
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
|
[node name="InvisibleWalls" type="StaticBody3D" parent="." unique_id=315740174]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="InvisibleWalls" unique_id=33059670]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 8.838269)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="InvisibleWalls" unique_id=2018792171]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -10.243342)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D3" type="CollisionShape3D" parent="InvisibleWalls" unique_id=757662929]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -9.807113, 4.688614, -0.018813243)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D4" type="CollisionShape3D" parent="InvisibleWalls" unique_id=1468386997]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 9.934778, 4.297072, -0.018813023)
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("5_gfdi7")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.507, 0)
|
||||||
|
|
||||||
|
[node name="Counter" parent="." unique_id=1487893288 instance=ExtResource("7_jnxsa")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.512, 0)
|
||||||
|
|
||||||
|
[node name="Potato" parent="." unique_id=962444046 instance=ExtResource("8_1qeqw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.273382, 1.5940565, -0.036002517)
|
||||||
|
|
||||||
|
[node name="Hatch" parent="." unique_id=1341321603 instance=ExtResource("8_atgwk")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.2, 0, 0)
|
||||||
|
|
||||||
|
[node name="Hatch2" parent="." unique_id=1755144529 instance=ExtResource("8_atgwk")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0)
|
||||||
|
|
||||||
|
[node name="BuildModeController" type="Node" parent="." unique_id=1876729190]
|
||||||
|
script = ExtResource("9_atgwk")
|
||||||
|
|
||||||
|
[node name="Sink" parent="." unique_id=1559059799 instance=ExtResource("10_dhas4")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.2, 0.5, 0)
|
||||||
|
|
||||||
|
[node name="Table" parent="." unique_id=1863572470 instance=ExtResource("11_gaw43")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4, 0.5, 1.8)
|
||||||
|
|
||||||
|
[node name="GameOverPanel" parent="." unique_id=522901881 instance=ExtResource("12_n58f2")]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.428178, 2.8122003, 3)
|
||||||
|
scene = ExtResource("13_hooyg")
|
||||||
|
viewport_size = Vector2(900, 600)
|
||||||
|
transparent = 0
|
||||||
|
filter = false
|
||||||
|
scene_properties_keys = PackedStringArray("game_over_panel.gd")
|
||||||
|
|
||||||
|
[node name="controler" type="Node" parent="GameOverPanel" unique_id=1442195864]
|
||||||
|
script = ExtResource("14_cqmpj")
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
extends TileMapLayer
|
||||||
|
|
||||||
|
@export var tile_map: TileMapLayer
|
||||||
|
|
||||||
|
@export_enum("Small", "medeam", "large") var map_size: int
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
|
||||||
|
tile_map.clear()
|
||||||
|
|
||||||
|
var mane_size = Vector2i(randi_range(16,20), randi_range(12,16))
|
||||||
|
if map_size == 1:
|
||||||
|
mane_size = Vector2i(randi_range(20,26), randi_range(12,18))
|
||||||
|
if map_size == 2:
|
||||||
|
mane_size = Vector2i(randi_range(26,32), randi_range(18,24))
|
||||||
|
|
||||||
|
#mane_size = Vector2i(10, 10)
|
||||||
|
|
||||||
|
var walls = draw_room(mane_size)
|
||||||
|
var next_room = Vector2i(randi_range(mane_size[0]/2,(mane_size[0]/3)*2), randi_range(mane_size[1]/2,(mane_size[1]/3)*2))
|
||||||
|
|
||||||
|
var good = []
|
||||||
|
for x in range(mane_size[0]):
|
||||||
|
for y in range(mane_size[1]):
|
||||||
|
if test_pos(Vector2i(x, y), next_room, walls, mane_size):
|
||||||
|
#tile_map.set_cell(Vector2i(x,y), 0, Vector2i(1,4))
|
||||||
|
good.append([x,y])
|
||||||
|
|
||||||
|
if good.size()>0:
|
||||||
|
for wall in draw_room(next_room, good.pick_random()):
|
||||||
|
walls.append(wall)
|
||||||
|
|
||||||
|
|
||||||
|
for i in range(8):
|
||||||
|
|
||||||
|
next_room = Vector2i(randi_range(4,mane_size[0]/(1+i)), randi_range(4, mane_size[1]/(1+i)))
|
||||||
|
good = []
|
||||||
|
if next_room[0]>4 and next_room[1]>4:
|
||||||
|
for x in range(mane_size[0]):
|
||||||
|
for y in range(mane_size[1]):
|
||||||
|
if test_pos(Vector2i(x, y), next_room, walls, mane_size):
|
||||||
|
#tile_map.set_cell(Vector2i(x,y), 0, Vector2i(5,3))
|
||||||
|
good.append([x,y])
|
||||||
|
|
||||||
|
if good.size()>0:
|
||||||
|
for wall in draw_room(next_room, good.pick_random()):
|
||||||
|
walls.append(wall)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func overLap(pos1, len1, pos2, len2):
|
||||||
|
#print("pos1: ", pos1, " len1: ", len1, " pos2: ", pos2, " len2: ", len2)
|
||||||
|
if pos1 <= pos2 and pos1+len1 >= pos2: return true
|
||||||
|
if pos2 <= pos1 and pos2+len2 >= pos1: return true
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
func overLapWall(wall, pos, size):
|
||||||
|
var totle = 0
|
||||||
|
var wall_tiles = []
|
||||||
|
for i in range(wall["len"]):
|
||||||
|
if wall["der"][1] == 0:wall_tiles.append(wall["pos"]+Vector2i(i,0))
|
||||||
|
else:wall_tiles.append(wall["pos"]+Vector2i(0,i))
|
||||||
|
|
||||||
|
for x in range(size[0]+1):
|
||||||
|
for y in range(size[1]+1):
|
||||||
|
if Vector2i(x+pos[0], y+pos[1]) in wall_tiles: totle+=1
|
||||||
|
|
||||||
|
return totle
|
||||||
|
|
||||||
|
func test_pos(pos, size, walls, mane_size):
|
||||||
|
|
||||||
|
if pos[0]+size[0] > mane_size[0]:return false
|
||||||
|
if pos[1]+size[1] > mane_size[1]:return false
|
||||||
|
|
||||||
|
var overlap = 0
|
||||||
|
for wall in walls:
|
||||||
|
overlap += overLapWall(wall, pos, size)
|
||||||
|
if wall["der"][1] == 0:#horisontal wall
|
||||||
|
if overLap(wall["pos"][0], wall["len"], pos[0], size[0]):
|
||||||
|
if wall["pos"][1]+1 == pos[1]: return false
|
||||||
|
if wall["pos"][1]+2 == pos[1]: return false
|
||||||
|
if wall["pos"][1]-1 == pos[1]: return false
|
||||||
|
if wall["pos"][1]-2 == pos[1]: return false
|
||||||
|
|
||||||
|
if wall["pos"][1]+1 == pos[1]+size[1]: return false
|
||||||
|
if wall["pos"][1]+2 == pos[1]+size[1]: return false
|
||||||
|
if wall["pos"][1]-1 == pos[1]+size[1]: return false
|
||||||
|
if wall["pos"][1]-2 == pos[1]+size[1]: return false
|
||||||
|
|
||||||
|
|
||||||
|
else:#virtical wall
|
||||||
|
if overLap(wall["pos"][1], wall["len"], pos[1], size[1]):
|
||||||
|
if wall["pos"][0]+1 == pos[0]: return false
|
||||||
|
if wall["pos"][0]+2 == pos[0]: return false
|
||||||
|
if wall["pos"][0]-1 == pos[0]: return false
|
||||||
|
if wall["pos"][0]-2 == pos[0]: return false
|
||||||
|
|
||||||
|
if wall["pos"][0]+1 == pos[0]+size[0]: return false
|
||||||
|
if wall["pos"][0]+2 == pos[0]+size[0]: return false
|
||||||
|
if wall["pos"][0]-1 == pos[0]+size[0]: return false
|
||||||
|
if wall["pos"][0]-2 == pos[0]+size[0]: return false
|
||||||
|
|
||||||
|
#if pos[1]+size[1] > wall["len"]:return false
|
||||||
|
|
||||||
|
if overlap < 3: return false
|
||||||
|
|
||||||
|
|
||||||
|
return true
|
||||||
|
|
||||||
|
|
||||||
|
func get_next(size, walls):
|
||||||
|
var offset = [-1,-1]
|
||||||
|
|
||||||
|
walls.shuffle()
|
||||||
|
SweetLogger.debug("Size: {0}", [size])
|
||||||
|
|
||||||
|
for wall in walls:
|
||||||
|
SweetLogger.debug("Wall: {0}", [wall])
|
||||||
|
if wall["der"][1] == 0:
|
||||||
|
SweetLogger.debug("Horizontal wall")
|
||||||
|
if size[0]<wall["len"]-6:
|
||||||
|
SweetLogger.debug("Length 6 less can go anywhere")
|
||||||
|
if wall["der"][0] == 1:offset[1] = wall["pos"][1]
|
||||||
|
else: offset[1] = wall["pos"][1]-size[1]
|
||||||
|
|
||||||
|
offset[0] = randi_range(0, wall["len"]-size[0])
|
||||||
|
if offset[0]>wall["pos"][0] and offset[0]<wall["pos"][0]+3:offset[0]=wall["pos"][0]+3
|
||||||
|
if size[0]+offset[0]>wall["pos"][0]+wall["len"]-3:offset[0] = wall["len"]-(3+size[0])
|
||||||
|
|
||||||
|
elif size[0]<=wall["len"]-3:
|
||||||
|
SweetLogger.debug("3 less needs to be on a corner")
|
||||||
|
if wall["der"][0] == 1:offset[1] = wall["pos"][1]
|
||||||
|
else: offset[1] = wall["pos"][1]-size[1]
|
||||||
|
|
||||||
|
if randi_range(0, 1):offset[0]=wall["pos"][0]+wall["len"]-size[0]
|
||||||
|
else:offset[0] = wall["pos"][0]
|
||||||
|
else:
|
||||||
|
SweetLogger.debug("Vertical wall")
|
||||||
|
if size[1]<wall["len"]-6:
|
||||||
|
SweetLogger.debug("Length 6 less can go anywhere")
|
||||||
|
if wall["der"][1] == 1:offset[0] = wall["pos"][0]
|
||||||
|
else: offset[0] = wall["pos"][0]-size[0]
|
||||||
|
|
||||||
|
offset[1] = randi_range(0, wall["len"]-size[1])
|
||||||
|
if offset[1]>wall["pos"][1] and offset[1]<wall["pos"][1]+3:offset[1]=wall["pos"][1]+3
|
||||||
|
if size[1]+offset[1]>wall["len"]-3:offset[1] = wall["len"]-(3+size[1])
|
||||||
|
|
||||||
|
elif size[1]<=wall["len"]-3:
|
||||||
|
SweetLogger.debug("3 less needs to be on a corner")
|
||||||
|
if wall["der"][1] == 1:offset[0] = wall["pos"][0]
|
||||||
|
else: offset[0] = wall["pos"][0]-size[0]
|
||||||
|
SweetLogger.debug("Offset: {0}", [offset])
|
||||||
|
|
||||||
|
if randi() % 2:offset[1]=wall["pos"][1]+wall["len"]-size[1]
|
||||||
|
else:offset[1] = wall["pos"][1]
|
||||||
|
|
||||||
|
|
||||||
|
if offset[0] != -1:break
|
||||||
|
|
||||||
|
return offset
|
||||||
|
|
||||||
|
|
||||||
|
func draw_room(Size, offset=Vector2i(0, 0)):
|
||||||
|
var walls = []
|
||||||
|
offset = Vector2i(offset[0], offset[1])
|
||||||
|
SweetLogger.debug("Size: {0} offset: {1}", [Size, offset])
|
||||||
|
|
||||||
|
for i in range(Size[0]):
|
||||||
|
tile_map.set_cell(Vector2i(i+offset[0],offset[1]), 0, Vector2i(1,1))
|
||||||
|
walls.append({"pos": offset, "der":Vector2i(1, 0), "len":Size[0]})
|
||||||
|
|
||||||
|
for i in range(Size[0]):
|
||||||
|
tile_map.set_cell(Vector2i(i+offset[0],Size[1]+offset[1]), 0, Vector2i(1,1))
|
||||||
|
walls.append({"pos": Vector2i(offset[0],Size[1]+offset[1]), "der":Vector2i(-1, 0), "len":Size[0]})
|
||||||
|
|
||||||
|
for i in range(Size[1]):
|
||||||
|
tile_map.set_cell(Vector2i(offset[0],i+offset[1]), 0, Vector2i(2,1))
|
||||||
|
walls.append({"pos": offset, "der":Vector2i(0, 1), "len":Size[1]})
|
||||||
|
|
||||||
|
for i in range(Size[1]):
|
||||||
|
tile_map.set_cell(Vector2i(Size[0]+offset[0],i+offset[1]), 0, Vector2i(2,1))
|
||||||
|
walls.append({"pos": Vector2i(Size[0]+offset[0],offset[1]), "der":Vector2i(0, -1), "len":Size[1]})
|
||||||
|
|
||||||
|
for x in range(Size[0]-1):
|
||||||
|
for y in range(Size[1]-1):
|
||||||
|
tile_map.erase_cell(Vector2i(x+1+offset[0],y+1+offset[1]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tile_map.set_cell(Vector2i(offset[0],offset[1]), 0, Vector2i(5,1))
|
||||||
|
tile_map.set_cell(Vector2i(Size[0]+offset[0],offset[1]), 0, Vector2i(6,1))
|
||||||
|
tile_map.set_cell(Vector2i(offset[0],Size[1]+offset[1]), 0, Vector2i(4,1))
|
||||||
|
tile_map.set_cell(Vector2i(Size[0]+offset[0],Size[1]+offset[1]), 0, Vector2i(3,1))
|
||||||
|
return walls
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func set_room(tile_pos, size, pos):
|
||||||
|
for x in size[0]:
|
||||||
|
for y in size[1]:
|
||||||
|
tile_map.set_cell(Vector2i(x+pos[0],y+pos[1]), 0, tile_pos)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://b7pl7bdo4rsfp"
|
||||||
|
path="res://.godot/imported/220175__gameaudio__pop-click.wav-6ef2d3317a82c347b715936ede79653a.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220175__gameaudio__pop-click.wav"
|
||||||
|
dest_files=["res://.godot/imported/220175__gameaudio__pop-click.wav-6ef2d3317a82c347b715936ede79653a.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://i53cyyyflr4r"
|
||||||
|
path="res://.godot/imported/220178__gameaudio__click.wav-566ebf31c82573e187ff8a1db97a7861.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220178__gameaudio__click.wav"
|
||||||
|
dest_files=["res://.godot/imported/220178__gameaudio__click.wav-566ebf31c82573e187ff8a1db97a7861.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://davhgl28oomi1"
|
||||||
|
path="res://.godot/imported/220179__gameaudio__click-metal-ting.wav-82be282871110eef8fea8249619832d7.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220179__gameaudio__click-metal-ting.wav"
|
||||||
|
dest_files=["res://.godot/imported/220179__gameaudio__click-metal-ting.wav-82be282871110eef8fea8249619832d7.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://cm384ry7fn132"
|
||||||
|
path="res://.godot/imported/220180__gameaudio__click-pop.wav-32216325683d314fa3adc66d13e633f4.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220180__gameaudio__click-pop.wav"
|
||||||
|
dest_files=["res://.godot/imported/220180__gameaudio__click-pop.wav-32216325683d314fa3adc66d13e633f4.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://cg6njyg3mhp5s"
|
||||||
|
path="res://.godot/imported/220187__gameaudio__loosedeny-casual-1.wav-2e7c1356ffec0a1e5b732b21f42e21a0.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220187__gameaudio__loosedeny-casual-1.wav"
|
||||||
|
dest_files=["res://.godot/imported/220187__gameaudio__loosedeny-casual-1.wav-2e7c1356ffec0a1e5b732b21f42e21a0.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://cofj78s5xfxft"
|
||||||
|
path="res://.godot/imported/220194__gameaudio__click-heavy.wav-43269bff3c60e2451b470f929c6b6bb8.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220194__gameaudio__click-heavy.wav"
|
||||||
|
dest_files=["res://.godot/imported/220194__gameaudio__click-heavy.wav-43269bff3c60e2451b470f929c6b6bb8.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://dllgyc8jh83an"
|
||||||
|
path="res://.godot/imported/220195__gameaudio__click-wooden-1.wav-f161e2c5a53d686c65d143b45f33acb1.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220195__gameaudio__click-wooden-1.wav"
|
||||||
|
dest_files=["res://.godot/imported/220195__gameaudio__click-wooden-1.wav-f161e2c5a53d686c65d143b45f33acb1.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://bk114r1jcdhjg"
|
||||||
|
path="res://.godot/imported/220196__gameaudio__click-wooden-2.wav-372f3d1af9c561baf2360e14b5b7050b.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220196__gameaudio__click-wooden-2.wav"
|
||||||
|
dest_files=["res://.godot/imported/220196__gameaudio__click-wooden-2.wav-372f3d1af9c561baf2360e14b5b7050b.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://dmyuqe5058sv3"
|
||||||
|
path="res://.godot/imported/220197__gameaudio__click-basic.wav-61aa24994882b9ab5848ecead3d7aba9.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220197__gameaudio__click-basic.wav"
|
||||||
|
dest_files=["res://.godot/imported/220197__gameaudio__click-basic.wav-61aa24994882b9ab5848ecead3d7aba9.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://etrjsxvei0a0"
|
||||||
|
path="res://.godot/imported/220198__gameaudio__click-with-two-parts.wav-23adbbdcc4d995994bf9700f6b6e244d.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220198__gameaudio__click-with-two-parts.wav"
|
||||||
|
dest_files=["res://.godot/imported/220198__gameaudio__click-with-two-parts.wav-23adbbdcc4d995994bf9700f6b6e244d.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://c8nvulcvmivin"
|
||||||
|
path="res://.godot/imported/220199__gameaudio__click-higher.wav-0ea6f7a1d32e528aace111f0ce8b9631.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220199__gameaudio__click-higher.wav"
|
||||||
|
dest_files=["res://.godot/imported/220199__gameaudio__click-higher.wav-0ea6f7a1d32e528aace111f0ce8b9631.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://daj38lvbypncb"
|
||||||
|
path="res://.godot/imported/220208__gameaudio__click-pop-two-part.wav-9e40de3d9bebd124d0fe54a4f4cc4db9.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220208__gameaudio__click-pop-two-part.wav"
|
||||||
|
dest_files=["res://.godot/imported/220208__gameaudio__click-pop-two-part.wav-9e40de3d9bebd124d0fe54a4f4cc4db9.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://xfcfxi6cat38"
|
||||||
|
path="res://.godot/imported/220212__gameaudio__ping-bing.wav-04a5460471fa8fe82fe5d9bc5d946bb0.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/220212__gameaudio__ping-bing.wav"
|
||||||
|
dest_files=["res://.godot/imported/220212__gameaudio__ping-bing.wav-04a5460471fa8fe82fe5d9bc5d946bb0.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user