[gd_scene load_steps=42 format=3 uid="uid://cq2j1rrigmuvn"] [ext_resource type="PackedScene" uid="uid://c1vdj6je3r3s5" path="res://assets/effects/dithering/CanvasLayer.tscn" id="1"] [ext_resource type="PackedScene" path="res://assets/room/environment.tscn" id="2"] [ext_resource type="PackedScene" path="res://3DCursor.tscn" id="3"] [ext_resource type="PackedScene" path="res://assets/room/camera_positions.tscn" id="4"] [ext_resource type="Script" path="res://AnimationTree.gd" id="5"] [ext_resource type="PackedScene" path="res://CursorInteractArea.tscn" id="6"] [ext_resource type="PackedScene" path="res://assets/audio/AmbientSound.tscn" id="7"] [ext_resource type="Script" path="res://AtticAmberLight.gd" id="8"] [ext_resource type="PackedScene" uid="uid://dje62t18bkano" path="res://assets/audio/voice_lines/LineReader.tscn" id="9"] [ext_resource type="PackedScene" path="res://animated_frog.tscn" id="10"] [ext_resource type="PackedScene" path="res://animated_squirrell.tscn" id="11"] [sub_resource type="Environment" id="1"] background_mode = 1 [sub_resource type="Animation" id="29"] resource_name = "color" length = 0.387 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.2), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [true, false] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_4j5e7"] _data = { "color": SubResource("29") } [sub_resource type="StandardMaterial3D" id="30"] albedo_color = Color(0, 0, 0, 1) [sub_resource type="BoxMesh" id="31"] [sub_resource type="AnimationNodeAnimation" id="9"] animation = &"camera_attic_inner" [sub_resource type="AnimationNodeAnimation" id="4"] animation = &"camera_bookcase" [sub_resource type="AnimationNodeAnimation" id="23"] animation = &"camera_bookshelf_secret" [sub_resource type="AnimationNodeAnimation" id="10"] animation = &"camera_outer_attic" [sub_resource type="AnimationNodeAnimation" id="8"] animation = &"camera_pos_corner" [sub_resource type="AnimationNodeStateMachineTransition" id="11"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="12"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="13"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="14"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="15"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="16"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="17"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="18"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="19"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="20"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="21"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="22"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="24"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="25"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="26"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachineTransition" id="27"] xfade_time = 3.0 [sub_resource type="AnimationNodeStateMachine" id="2"] states/camera_attic_inner/node = SubResource("9") states/camera_attic_inner/position = Vector2(788, 309) states/camera_bookcase/node = SubResource("4") states/camera_bookcase/position = Vector2(706, 78) states/camera_bookshelf_secret/node = SubResource("23") states/camera_bookshelf_secret/position = Vector2(246, 6) states/camera_outer_attic/node = SubResource("10") states/camera_outer_attic/position = Vector2(417, 324) states/camera_pos_corner/node = SubResource("8") states/camera_pos_corner/position = Vector2(230, 169) transitions = ["camera_pos_corner", "camera_bookcase", SubResource("11"), "camera_outer_attic", "camera_pos_corner", SubResource("12"), "camera_outer_attic", "camera_bookcase", SubResource("13"), "camera_outer_attic", "camera_attic_inner", SubResource("14"), "camera_pos_corner", "camera_outer_attic", SubResource("15"), "camera_pos_corner", "camera_attic_inner", SubResource("16"), "camera_bookcase", "camera_pos_corner", SubResource("17"), "camera_bookcase", "camera_attic_inner", SubResource("18"), "camera_bookcase", "camera_outer_attic", SubResource("19"), "camera_attic_inner", "camera_bookcase", SubResource("20"), "camera_attic_inner", "camera_outer_attic", SubResource("21"), "camera_attic_inner", "camera_pos_corner", SubResource("22"), "camera_pos_corner", "camera_bookshelf_secret", SubResource("24"), "camera_bookshelf_secret", "camera_pos_corner", SubResource("25"), "camera_bookshelf_secret", "camera_bookcase", SubResource("26"), "camera_bookcase", "camera_bookshelf_secret", SubResource("27")] graph_offset = Vector2(-121, -28) [sub_resource type="AnimationNodeStateMachinePlayback" id="3"] [sub_resource type="Animation" id="28"] resource_name = "light_flicker" length = 1.263 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0.1, 0.3, 0.5, 1.5, 1.6, 2.3, 2.5, 3.7, 3.9, 4.6, 5, 5.2, 7.8, 8.2, 11.7), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [true, false, true, false, true, true, true, false, true, false, false, true, false, true, true] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_axr34"] _data = { "light_flicker": SubResource("28") } [node name="Node3D" type="Node3D"] [node name="CanvasLayer" parent="." instance=ExtResource("1")] layer = 99 [node name="environment" parent="." instance=ExtResource("2")] [node name="ClockLight" type="SpotLight3D" parent="."] transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -2.44573, 8.37317, -1.81664) light_color = Color(0.603922, 0.701961, 0.94902, 1) light_energy = 1.5 spot_range = 3.66733 spot_angle = 38.3586 [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("1") [node name="OmniLight3D" type="OmniLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00275469, 5.3306, -0.00586939) light_energy = 12.0 light_indirect_energy = 1.306 light_cull_mask = 4294443007 shadow_enabled = true omni_range = 8.917 omni_attenuation = 2.73208 [node name="SecretLight" type="OmniLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00275469, 5.33571, 12.162) light_energy = 7.092 light_indirect_energy = 1.306 light_cull_mask = 4294443007 shadow_enabled = true omni_range = 13.347 omni_attenuation = 1.27456 [node name="AnimationPlayer" type="AnimationPlayer" parent="SecretLight"] autoplay = "color" libraries = { "": SubResource("AnimationLibrary_4j5e7") } [node name="MeshInstance3D" type="MeshInstance3D" parent="SecretLight/AnimationPlayer"] transform = Transform3D(3.54479, 0, 0, 0, 8.93949, 0, 0, 0, 0.75139, 0, 0, 6.36648) material_override = SubResource("30") mesh = SubResource("31") [node name="MeshInstance2" type="MeshInstance3D" parent="SecretLight/AnimationPlayer"] transform = Transform3D(15.4712, 0, 0, 0, 8.93949, 0, 0, 0, 0.75139, 0, 18.0633, 6.36648) material_override = SubResource("30") mesh = SubResource("31") [node name="SpotLight3D" type="SpotLight3D" parent="."] transform = Transform3D(-0.999987, 5.82069e-11, 0.00514878, 0.00507827, 0.164927, 0.986293, -0.000849173, 0.986306, -0.164925, 0, 4.25661, -0.823411) light_color = Color(0.623529, 0.247059, 0.756863, 1) light_energy = 30.0 light_specular = 0.594 light_cull_mask = 4294443007 shadow_enabled = true spot_range = 13.9301 spot_angle = 57.9366 [node name="3DCursor" parent="." instance=ExtResource("3")] transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 7.05282, 0) KB_ACTIONS_PER_SECOND = 6.0 [node name="camera_positions" parent="." instance=ExtResource("4")] [node name="AnimationTree" type="AnimationTree" parent="."] process_mode = 2 tree_root = SubResource("2") anim_player = NodePath("../camera_positions/AnimationPlayer") active = true parameters/playback = SubResource("3") script = ExtResource("5") [node name="CameraMoveZones" type="Node3D" parent="."] [node name="BookshelfEnter" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(1.88241, 0, 0, 0, 1.41215, 0, 0, 0, 1.8099, 0, 4.13633, 3.52765) on_enter_func = "_on_Cursor_set_camera" call_string = "camera_bookcase" [node name="BookshelfLeave" parent="CameraMoveZones/BookshelfEnter" instance=ExtResource("6")] transform = Transform3D(1.31595, 0, 0, 0, 1.36796, 0, 0, 0, 1.32271, 0, 0, 0) on_leave_func = "_on_Cursor_set_camera" call_string = "camera_pos_corner" [node name="OuterAtticEnter" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(1, 0, 0, 0, 1.46013, 0, 0, 0, 1.2653, -2.46345, 9.85499, -3.18314) on_enter_func = "_on_Cursor_set_camera" call_string = "camera_outer_attic" [node name="OuterAtticLeave" parent="CameraMoveZones/OuterAtticEnter" instance=ExtResource("6")] transform = Transform3D(19.4492, 0, 0, 0, 4.36306, 0, 0, 0, 5.15836, -15.3042, 3.71776, 0) on_leave_func = "_on_Cursor_set_camera" call_string = "camera_pos_corner" [node name="UpperAtticEnter" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(6.28323, 0, 0, 0, 4.7198, 0, 0, 0, 7.91118, -23.9917, 13.7811, 0) on_enter_func = "_on_Cursor_set_camera" call_string = "camera_attic_inner" [node name="UpperAtticLeave" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(10.8129, 0, 0, 0, 4.7198, 0, 0, 0, 7.91118, -26.7224, 13.7811, 0) on_leave_func = "_on_Cursor_set_camera" call_string = "camera_outer_attic" [node name="SecretEnter" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(8.71637, 0, 0, 0, 13.8749, 0, 0, 0, 6.0468, 0, 0, 15.4817) on_enter_func = "_on_Cursor_set_camera" call_string = "camera_bookshelf_secret" [node name="SecretLeave" parent="CameraMoveZones" instance=ExtResource("6")] transform = Transform3D(8.71637, 0, 0, 0, 13.8749, 0, 0, 0, 7.8447, 0, 0, 15.4817) on_leave_func = "_on_Cursor_set_camera" call_string = "camera_pos_corner" [node name="AmbientSound" parent="." instance=ExtResource("7")] [node name="Attic" type="Node3D" parent="."] [node name="AtticAmberLight" type="OmniLight3D" parent="Attic"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.8074, 13.5384, -0.81872) light_color = Color(0.796078, 0.627451, 0.25098, 1) light_energy = 6.0 light_indirect_energy = 1.306 light_cull_mask = 4294443007 shadow_enabled = true omni_range = 4.0 omni_attenuation = 2.73208 script = ExtResource("8") [node name="AnimationPlayer" type="AnimationPlayer" parent="Attic/AtticAmberLight"] libraries = { "": SubResource("AnimationLibrary_axr34") } [node name="LineReader" parent="." instance=ExtResource("9")] [node name="GoalZones" type="Node3D" parent="."] [node name="the_long_book" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(0.693, 0, 0, 0, 0.41, 0, 0, 0, 0.496, -0.572389, 3.76068, 3.84481) on_interact_func = "_on_Cursor_goal" call_array = ["the_long", "book"] [node name="the_tall_book" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(0.64, 0, 0, 0, 0.689, 0, 0, 0, 0.488, 1.25306, 3.99747, 3.95989) on_interact_func = "_on_Cursor_goal" call_array = ["the_tall", "book"] [node name="the_door" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(1.526, 0, 0, 0, 4.514, 0, 0, 0, 2.539, -5.6107, 4.66981, 1.83416) on_interact_func = "_on_Cursor_goal" call_array = ["the_door"] [node name="the_clock" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(1.383, 0, 0, 0, 1.187, 0, 0, 0, 1.428, -4.68422, 8.48257, -1.61869) on_interact_func = "_on_Cursor_goal" call_array = ["the_clock"] [node name="under_the_bed" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(3.368, 0, 0, 0, 1.691, 0, 0, 0, 3.688, 5.40015, 0, -1.50949) on_interact_func = "_on_Cursor_goal" call_array = ["under_the_bed"] [node name="the_attic" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(12.434, 0, 0, 0, 5.175, 0, 0, 0, 8.316, -32.445, 14.1609, 0) on_interact_func = "_on_Cursor_goal" call_array = ["the_attic"] [node name="the_fridge" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(2.509, 0, 0, 0, 6.721, 0, 0, 0, 1.673, -2.65881, 0, -2.63396) on_interact_func = "_on_Cursor_goal" call_array = ["the_fridge"] [node name="behind_the_bookshelf" parent="GoalZones" instance=ExtResource("6")] transform = Transform3D(6.288, 0, 0, 0, 14.327, 0, 0, 0, 4.024, 0, 0, 16.6605) on_interact_func = "_on_Cursor_goal" call_array = ["behind_the_bookshelf"] [node name="AnimatedFrog" parent="." instance=ExtResource("10")] transform = Transform3D(-0.25, 0, -2.18557e-08, 0, 0.25, 0, 2.18557e-08, 0, -0.25, -2.0531, 3.60435, 3.78789) [node name="AnimatedFrog2" parent="." instance=ExtResource("10")] transform = Transform3D(-0.25, 0, -2.18557e-08, 0, 0.25, 0, 2.18557e-08, 0, -0.25, -2.0531, -3.76855, 14.7218) hop = true [node name="AnimatedFrog3" parent="." instance=ExtResource("10")] transform = Transform3D(-0.134924, 0, 0.210465, 0, 0.25, 0, -0.210465, 0, -0.134924, -24.9938, 12.6545, -2.18772) [node name="AnimatedSquirrel" parent="." instance=ExtResource("11")] transform = Transform3D(-0.175053, 0, -0.178484, 0, 0.25, 0, 0.178484, 0, -0.175053, 2.91965, 2.82708, 1.3549) hop = true [node name="AnimatedSquirrel2" parent="." instance=ExtResource("11")] transform = Transform3D(-0.23556, 0, -0.0837355, 0, 0.25, 0, 0.0837355, 0, -0.23556, 1.2157, -3.69864, 14.5479) hop = true [connection signal="motion_status" from="AnimationTree" to="AmbientSound" method="_on_AnimationTree_motion_status"] [connection signal="motion_status" from="AnimationTree" to="Attic/AtticAmberLight" method="_on_AnimationTree_motion_status"] [editable path="camera_positions"]