Multiple levels support

This commit is contained in:
2024-10-08 04:31:36 +03:00
parent f62dbbf505
commit 69b62c8c97
3 changed files with 1767 additions and 100 deletions

View File

@@ -14,7 +14,9 @@ size = Vector3( 4, 8, 4 )
[sub_resource type="SpatialMaterial" id=4]
flags_transparent = true
albedo_color = Color( 1, 1, 1, 0.654902 )
flags_unshaded = true
flags_do_not_receive_shadows = true
albedo_color = Color( 1, 1, 1, 0.462745 )
[sub_resource type="CubeMesh" id=1]
material = SubResource( 4 )
@@ -35,7 +37,7 @@ margin_bottom = 20.0
margin_right = 35.0
margin_bottom = 20.0
text = "File"
items = [ "Save", null, 0, false, false, 100, 0, null, "", false ]
items = [ "Save", null, 0, false, false, 100, 0, null, "", false, "Build Mesh Library", null, 0, false, false, 101, 0, null, "", false ]
switch_on_hover = true
[node name="ElementMenu" type="MenuButton" parent="menu_panel"]
@@ -377,22 +379,20 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 4, -2 )
mesh = SubResource( 3 )
skeleton = NodePath("../..")
[node name="RemoteTransform" type="RemoteTransform" parent="."]
remote_path = NodePath("../bg_floor")
update_rotation = false
update_scale = false
[node name="bg_floor_base" type="Spatial" parent="."]
unique_name_in_owner = true
[node name="bg_floor_base" type="MeshInstance" parent="RemoteTransform"]
[node name="bg_floor_mi" type="MeshInstance" parent="bg_floor_base"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, -0.5, -2 )
mesh = SubResource( 1 )
skeleton = NodePath("../..")
[node name="Area" type="Area" parent="RemoteTransform/bg_floor_base"]
[node name="Area" type="Area" parent="bg_floor_base/bg_floor_mi"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
collision_layer = 49152
collision_mask = 49152
monitoring = false
[node name="CollisionShape" type="CollisionShape" parent="RemoteTransform/bg_floor_base/Area"]
[node name="CollisionShape" type="CollisionShape" parent="bg_floor_base/bg_floor_mi/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
shape = SubResource( 5 )