antichamber-at-home/world.tscn

330 lines
13 KiB
Plaintext

[gd_scene load_steps=20 format=4 uid="uid://by4fsuj02uyb3"]
[ext_resource type="Script" uid="uid://7uicahbwx5vb" path="res://scripts/antichamber.gd" id="1_2o6r5"]
[ext_resource type="Script" uid="uid://bdclx4q3c332j" path="res://scripts/player.gd" id="1_f3sb7"]
[ext_resource type="PackedScene" uid="uid://loidsa645j6i" path="res://meshes/Hall-BeforeStairs.glb" id="2_fj7yv"]
[ext_resource type="PackedScene" uid="uid://mpqe1akw3sgh" path="res://meshes/Hall-BeforeStairs-Outline.glb" id="3_ioo17"]
[ext_resource type="PackedScene" uid="uid://cjxdjqx2jg68m" path="res://meshes/adjusted/stairs_red.tscn" id="6_pkg7o"]
[ext_resource type="PackedScene" uid="uid://d4mwke054j2jp" path="res://meshes/adjusted/stairs_blue.tscn" id="7_gbfbk"]
[ext_resource type="PackedScene" uid="uid://c88dwy3xkhxmj" path="res://meshes/Hall-AfterStairs.glb" id="8_70uel"]
[ext_resource type="PackedScene" uid="uid://dg8u30dpogytq" path="res://meshes/Hall-Win.glb" id="8_ioo17"]
[ext_resource type="PackedScene" uid="uid://bwox38sbk15lq" path="res://meshes/Hall-AfterStairs-Outline.glb" id="9_hiqwa"]
[ext_resource type="PackedScene" uid="uid://bxbrle74hc0x7" path="res://meshes/Hall-Win-Outline.glb" id="9_wse8f"]
[ext_resource type="Script" uid="uid://cw1r4c1d7beyv" path="res://addons/portals/scripts/portal_3d.gd" id="10_ic0uy"]
[ext_resource type="Material" uid="uid://dcfkcyddxkglf" path="res://addons/portals/materials/editor-preview-portal-material.tres" id="11_2o6r5"]
[ext_resource type="Script" uid="uid://bxcel82b180o3" path="res://addons/portals/scripts/portal_boxmesh.gd" id="11_k3n1d"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_f3sb7"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
[sub_resource type="Sky" id="Sky_fj7yv"]
sky_material = SubResource("ProceduralSkyMaterial_f3sb7")
[sub_resource type="Environment" id="Environment_tlwt5"]
background_mode = 2
sky = SubResource("Sky_fj7yv")
ambient_light_source = 2
ambient_light_color = Color(1, 1, 1, 1)
tonemap_mode = 2
ssao_radius = 0.2
glow_enabled = true
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_f3sb7"]
radius = 0.375
height = 1.5
[sub_resource type="ArrayMesh" id="ArrayMesh_70uel"]
_surfaces = [{
"aabb": AABB(-1, -1, -1, 2, 2, 1),
"attribute_data": PackedByteArray("AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AACAPw=="),
"format": 34359742487,
"index_count": 36,
"index_data": PackedByteArray("AAABAAQABAABAAUAAQADAAUABQADAAcAAwACAAcABwACAAYAAgAAAAYABgAAAAQABAAFAAYABgAFAAcAAAABAAIAAgABAAMA"),
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 8,
"vertex_data": PackedByteArray("AACAvwAAgD8AAAAAAACAPwAAgD8AAAAAAACAvwAAgL8AAAAAAACAPwAAgL8AAAAAAACAvwAAgD8AAIC/AACAPwAAgD8AAIC/AACAvwAAgL8AAIC/AACAPwAAgL8AAIC//3//f/9/AID/f/9//38AgP9//3//fwCA/3//f/9/AID/f/9//38AgP9//3//fwCA/3//f/9/AID/f/9//38AgA==")
}]
script = ExtResource("11_k3n1d")
size = Vector3(2, 2, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_hiqwa"]
size = Vector3(2, 2, 1)
[node name="World" type="Node3D"]
script = ExtResource("1_2o6r5")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_tlwt5")
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera")]
transform = Transform3D(1, 0, -1.58933e-08, 0, 1, 0, 1.58933e-08, 0, 1, -4.42657, 1.05097, 10.9577)
collision_layer = 32769
floor_max_angle = 0.872665
script = ExtResource("1_f3sb7")
camera = NodePath("Camera3D")
SPEED = 3.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
shape = SubResource("CapsuleShape3D_f3sb7")
[node name="Camera3D" type="Camera3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
[node name="Hall-BeforeStairs" parent="." instance=ExtResource("2_fj7yv")]
[node name="Hall-BeforeStairs-Outline" parent="Hall-BeforeStairs" instance=ExtResource("3_ioo17")]
[node name="After_Blue" parent="." instance=ExtResource("8_70uel")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.4, 2.2, 1.1)
[node name="Hall-AfterStairs-Outline" parent="After_Blue" instance=ExtResource("9_hiqwa")]
[node name="After_Red" parent="." instance=ExtResource("8_70uel")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.4, -2.2, -1)
[node name="Hall-AfterStairs-Outline" parent="After_Red" instance=ExtResource("9_hiqwa")]
[node name="StairsRed" parent="." instance=ExtResource("6_pkg7o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.1, 1, -0.1)
[node name="Light_Red" type="OmniLight3D" parent="StairsRed"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0843084, 0.0581009, -1.03272)
light_color = Color(0, 1, 1, 1)
light_energy = 0.999
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -3.149
[node name="Light_Magenta" type="OmniLight3D" parent="StairsRed"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0843084, 0.0581009, -1.03272)
light_color = Color(0, 0.596078, 0, 1)
light_energy = 7.838
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -0.639
[node name="Light_Red2" type="OmniLight3D" parent="StairsRed"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.38121, -2.2419, -0.832723)
light_color = Color(0, 1, 1, 1)
light_energy = 1.564
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -3.149
[node name="Stairs_Blue" parent="." instance=ExtResource("7_gbfbk")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.1, 1, 2)
[node name="Light_Blue3" type="OmniLight3D" parent="Stairs_Blue"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0843081, 0.0581009, -1.03272)
light_color = Color(1, 1, 0, 1)
light_energy = 0.937
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -3.149
[node name="Light_Cyan" type="OmniLight3D" parent="Stairs_Blue"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0843081, 0.0581009, -1.03272)
light_color = Color(1, 0.415686, 0, 1)
light_energy = 1.564
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -3.149
[node name="Light_Blue4" type="OmniLight3D" parent="Stairs_Blue"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.38121, 2.1581, -0.832723)
light_color = Color(1, 1, 0, 1)
light_energy = 1.564
light_negative = true
light_bake_mode = 1
shadow_enabled = true
omni_range = 2.13
omni_attenuation = -3.149
[node name="Hall-Win" parent="." instance=ExtResource("8_ioo17")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 7)
[node name="Hall-Win-Outline" parent="Hall-Win" instance=ExtResource("9_wse8f")]
[node name="WinIndicator" type="Node3D" parent="Hall-Win"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 1, 2.1)
[node name="GreenLight" type="OmniLight3D" parent="Hall-Win/WinIndicator"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.412657)
light_color = Color(1, 0, 1, 1)
light_energy = 1.806
light_negative = true
omni_range = 3.57778
omni_attenuation = -1.25
[node name="Label3D" type="Label3D" parent="Hall-Win/WinIndicator"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 2.8)
text = "YOU WIN!!!"
[node name="StairsPortal" type="Node3D" parent="." node_paths=PackedStringArray("exit_portal") groups=["portals"]]
unique_name_in_owner = true
process_priority = 100
process_physics_priority = 100
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -6, 1, 3)
script = ExtResource("10_ic0uy")
_portal_mesh_path = NodePath("Portal3D_Mesh")
_teleport_area_path = NodePath("TeleportArea")
_teleport_collider_path = NodePath("TeleportArea/Collider")
portal_size = Vector2(2, 2)
exit_portal = NodePath("../StartPortal")
portal_render_layer = 524288
portal_frame_width = 0.0
viewport_size_mode = 1
_viewport_size_max_width_absolute = 1920
view_direction = 0
is_teleport = true
teleport_direction = 2
rigidbody_boost = 0.0
teleport_collision_mask = 32768
teleport_tolerance = 0.5
teleport_interactions = 3
start_deactivated = false
metadata/_custom_type_script = "uid://cw1r4c1d7beyv"
metadata/_edit_group_ = true
[node name="Portal3D_Mesh" type="MeshInstance3D" parent="StairsPortal"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.05, 0, 0, 0)
layers = 524288
material_override = ExtResource("11_2o6r5")
cast_shadow = 0
mesh = SubResource("ArrayMesh_70uel")
[node name="TeleportArea" type="Area3D" parent="StairsPortal"]
[node name="Collider" type="CollisionShape3D" parent="StairsPortal/TeleportArea"]
shape = SubResource("BoxShape3D_hiqwa")
[node name="StartPortal" type="Node3D" parent="." node_paths=PackedStringArray("exit_portal") groups=["portals"]]
unique_name_in_owner = true
process_priority = 100
process_physics_priority = 100
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, -10, 1, 6.9)
script = ExtResource("10_ic0uy")
_portal_mesh_path = NodePath("Portal3D_Mesh")
_teleport_area_path = NodePath("TeleportArea")
_teleport_collider_path = NodePath("TeleportArea/Collider")
portal_size = Vector2(2, 2)
exit_portal = NodePath("../StairsPortal")
portal_render_layer = 524288
portal_frame_width = 0.0
viewport_size_mode = 1
_viewport_size_max_width_absolute = 1920
view_direction = 0
is_teleport = true
teleport_direction = 2
rigidbody_boost = 0.0
teleport_collision_mask = 32768
teleport_tolerance = 0.5
teleport_interactions = 3
start_deactivated = false
metadata/_custom_type_script = "uid://cw1r4c1d7beyv"
metadata/_edit_group_ = true
[node name="Portal3D_Mesh" type="MeshInstance3D" parent="StartPortal"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.05, 0, 0, 0)
layers = 524288
material_override = ExtResource("11_2o6r5")
cast_shadow = 0
mesh = SubResource("ArrayMesh_70uel")
[node name="TeleportArea" type="Area3D" parent="StartPortal"]
[node name="Collider" type="CollisionShape3D" parent="StartPortal/TeleportArea"]
shape = SubResource("BoxShape3D_hiqwa")
[node name="BluePortal" type="Node3D" parent="." node_paths=PackedStringArray("exit_portal") groups=["portals"]]
unique_name_in_owner = true
process_priority = 100
process_physics_priority = 100
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 3.2, 2.1)
script = ExtResource("10_ic0uy")
_portal_mesh_path = NodePath("Portal3D_Mesh")
_teleport_area_path = NodePath("TeleportArea")
_teleport_collider_path = NodePath("TeleportArea/Collider")
portal_size = Vector2(2, 2)
exit_portal = NodePath("../StairsPortal")
portal_render_layer = 524288
portal_frame_width = 0.0
viewport_size_mode = 1
_viewport_size_max_width_absolute = 1920
view_direction = 0
is_teleport = true
teleport_direction = 2
rigidbody_boost = 0.0
teleport_collision_mask = 32768
teleport_tolerance = 0.5
teleport_interactions = 3
start_deactivated = false
metadata/_custom_type_script = "uid://cw1r4c1d7beyv"
metadata/_edit_group_ = true
[node name="Portal3D_Mesh" type="MeshInstance3D" parent="BluePortal"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.05, 0, 0, 0)
layers = 524288
material_override = ExtResource("11_2o6r5")
cast_shadow = 0
mesh = SubResource("ArrayMesh_70uel")
[node name="TeleportArea" type="Area3D" parent="BluePortal"]
[node name="Collider" type="CollisionShape3D" parent="BluePortal/TeleportArea"]
shape = SubResource("BoxShape3D_hiqwa")
[node name="RedPortal" type="Node3D" parent="." node_paths=PackedStringArray("exit_portal") groups=["portals"]]
unique_name_in_owner = true
process_priority = 100
process_physics_priority = 100
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, -1.2, -2.38419e-07)
script = ExtResource("10_ic0uy")
_portal_mesh_path = NodePath("Portal3D_Mesh")
_teleport_area_path = NodePath("TeleportArea")
_teleport_collider_path = NodePath("TeleportArea/Collider")
portal_size = Vector2(2, 2)
exit_portal = NodePath("../StairsPortal")
portal_render_layer = 524288
portal_frame_width = 0.0
viewport_size_mode = 1
_viewport_size_max_width_absolute = 1920
view_direction = 0
is_teleport = true
teleport_direction = 2
rigidbody_boost = 0.0
teleport_collision_mask = 32768
teleport_tolerance = 0.5
teleport_interactions = 3
start_deactivated = false
metadata/_custom_type_script = "uid://cw1r4c1d7beyv"
metadata/_edit_group_ = true
[node name="Portal3D_Mesh" type="MeshInstance3D" parent="RedPortal"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.05, 0, 0, 0)
layers = 524288
material_override = ExtResource("11_2o6r5")
cast_shadow = 0
mesh = SubResource("ArrayMesh_70uel")
[node name="TeleportArea" type="Area3D" parent="RedPortal"]
[node name="Collider" type="CollisionShape3D" parent="RedPortal/TeleportArea"]
shape = SubResource("BoxShape3D_hiqwa")
[connection signal="on_teleport" from="BluePortal" to="." method="_on_blue_portal_on_teleport"]
[connection signal="on_teleport" from="RedPortal" to="." method="_on_red_portal_on_teleport"]