[gd_scene format=3 uid="uid://ser0oa3o1n56"] [ext_resource type="Script" uid="uid://qffjfnrcnboa" path="res://scripts/Player.gd" id="1_mba18"] [ext_resource type="Script" uid="uid://c8d5ntqd0070m" path="res://scripts/interactor.gd" id="2_wqtol"] [ext_resource type="Resource" uid="uid://bo7m0g7qwi8nk" path="res://scenes/constructs/stick/stick.tres" id="3_5stf6"] [ext_resource type="PackedScene" uid="uid://ci7kg8ouj7cvu" path="res://scenes/constructs/construct.tscn" id="4_ebyyx"] [ext_resource type="AudioStream" uid="uid://cpdd4q4lp3e40" path="res://assets/SFX/565716__ralphwhitehead__footsteps-walking-on-wooden-floor-medium-pace.wav" id="4_obb1p"] [ext_resource type="Script" uid="uid://bh4obtyl4m7hx" path="res://scripts/reticle.gd" id="5_bj1ma"] [ext_resource type="Script" uid="uid://b2xxx35evjgun" path="res://scripts/detect_floor.gd" id="8_ov1oi"] [ext_resource type="PackedScene" uid="uid://dh0mqk2ioktch" path="res://scenes/menus/pause_menu.tscn" id="9_20koh"] [ext_resource type="Script" uid="uid://d4h4veqptsoqp" path="res://scripts/ui_current_construct.gd" id="10_20koh"] [ext_resource type="PackedScene" uid="uid://b3hoq5yyocp4m" path="res://scenes/menus/inventory.tscn" id="10_ov1oi"] [ext_resource type="Script" uid="uid://dremwb322vlaf" path="res://scripts/text_box.gd" id="11_180ig"] [ext_resource type="AudioStream" uid="uid://dg71qcdg8lh2f" path="res://assets/SFX/421022__inspectorj__running-snow-a.wav" id="11_es4xk"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5stf6"] albedo_color = Color(0, 0, 1, 1) [sub_resource type="CapsuleMesh" id="CapsuleMesh_2efoy"] material = SubResource("StandardMaterial3D_5stf6") [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_fteo1"] [sub_resource type="Animation" id="Animation_7l7cn"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0.56, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Neck/FirstPersonCamera/ItemRig/Construct:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Neck/FirstPersonCamera/ItemRig/Construct:position") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0.5, -0.3, -0.7)] } [sub_resource type="Animation" id="Animation_ebyyx"] resource_name = "swing" length = 0.6 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck/FirstPersonCamera/ItemRig/Construct:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.15, 0.6), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector3(0, 1.91986, 0), Vector3(0, 1.91986, -1.22173), Vector3(0, 1.91986, 0)] } [sub_resource type="Animation" id="Animation_es4xk"] resource_name = "toss" length = 0.6 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck/FirstPersonCamera/ItemRig/Construct:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.35, 0.6), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector3(0.5, -0.3, -0.7), Vector3(0.5, 0, -0.7), Vector3(0.5, -0.3, -0.7)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_d68m8"] _data = { &"RESET": SubResource("Animation_7l7cn"), &"swing": SubResource("Animation_ebyyx"), &"toss": SubResource("Animation_es4xk") } [sub_resource type="Animation" id="Animation_rn7t0"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0.56, 0)] } [sub_resource type="Animation" id="Animation_g183x"] resource_name = "crouch_down" length = 0.25 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.233333), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Vector3(0, 0.56, 0), Vector3(0, 0.15, 0)] } [sub_resource type="Animation" id="Animation_ov1oi"] resource_name = "head_bob" loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Neck:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.266667, 0.766667, 1), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 0, "values": [Vector3(0, 0.56, 0), Vector3(0, 0.64, 0), Vector3(0, 0.48, 0), Vector3(0, 0.56, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_ojh85"] _data = { &"RESET": SubResource("Animation_rn7t0"), &"crouch": SubResource("Animation_g183x"), &"head_bob": SubResource("Animation_ov1oi") } [sub_resource type="LabelSettings" id="LabelSettings_180ig"] font_size = 40 outline_size = 10 outline_color = Color(0, 0, 0, 1) [node name="Player" type="CharacterBody3D" unique_id=1405475883 groups=["player"]] collision_layer = 5 collision_mask = 5 floor_max_angle = 1.0472 script = ExtResource("1_mba18") WALK = 4 RUN = 8 floating_jump = true grapple_speed = 10 [node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=134489333] cast_shadow = 0 mesh = SubResource("CapsuleMesh_2efoy") [node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=751426452] shape = SubResource("CapsuleShape3D_fteo1") [node name="Neck" type="Node3D" parent="." unique_id=301242026] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.56, 0) [node name="FirstPersonCamera" type="Camera3D" parent="Neck" unique_id=342274786] cull_mask = 1048573 current = true [node name="ItemRig" type="Node3D" parent="Neck/FirstPersonCamera" unique_id=1994853170] [node name="Construct" parent="Neck/FirstPersonCamera/ItemRig" unique_id=774462802 instance=ExtResource("4_ebyyx")] transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0.5, -0.3, -0.7) CONSTRUCT_TYPE = ExtResource("3_5stf6") constructs = { "fishing_rod": false, "flashlight": true, "hammer": true, "light": false, "nothing": false, "shovel": false, "stick": true, "time": true, "weight": true } [node name="InteractorRay" type="RayCast3D" parent="Neck/FirstPersonCamera" unique_id=1552266327 groups=["player_ray"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2) target_position = Vector3(0, 0, -4) collision_mask = 2 hit_from_inside = true debug_shape_thickness = 5 script = ExtResource("2_wqtol") [node name="GrappleRay" type="RayCast3D" parent="Neck/FirstPersonCamera" unique_id=362108290] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.02, 0.02, -0.482) visible = false target_position = Vector3(0, 0, -50) collision_mask = 2 debug_shape_thickness = 5 [node name="DumpingRay" type="RayCast3D" parent="Neck/FirstPersonCamera" unique_id=330755418 groups=["player_ray"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.2) target_position = Vector3(0, 0, -4) collision_mask = 4 debug_shape_thickness = 5 script = ExtResource("2_wqtol") [node name="FloorRay" type="RayCast3D" parent="." unique_id=184207867] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.997537, 0) target_position = Vector3(0, -0.01, 0) script = ExtResource("8_ov1oi") [node name="Audio" type="Node3D" parent="FloorRay" unique_id=257897972] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.525553, 0) [node name="AudioHardFloor" type="AudioStreamPlayer3D" parent="FloorRay/Audio" unique_id=2016510907] transform = Transform3D(-0.114192, 0, 0.993459, 0, 1, 0, -0.993459, 0, -0.114192, 0, -1.07737, 0) stream = ExtResource("4_obb1p") volume_db = -20.0 [node name="AudioSnow" type="AudioStreamPlayer3D" parent="FloorRay/Audio" unique_id=493069702] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.077, 0) stream = ExtResource("11_es4xk") pitch_scale = 0.5 [node name="AudioFloor" type="AudioStreamPlayer3D" parent="FloorRay/Audio" unique_id=22107579] [node name="ConstructAnimation" type="AnimationPlayer" parent="." unique_id=1358051717] libraries/ = SubResource("AnimationLibrary_d68m8") [node name="PlayerAnimation" type="AnimationPlayer" parent="." unique_id=365955970] libraries/ = SubResource("AnimationLibrary_ojh85") [node name="PauseMenu" parent="." unique_id=523104302 instance=ExtResource("9_20koh")] [node name="Inventory" parent="." unique_id=228567293 instance=ExtResource("10_ov1oi")] [node name="UserInterface" type="Control" parent="." unique_id=483806141] process_mode = 3 layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="Reticle" type="CenterContainer" parent="UserInterface" unique_id=335313459] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("5_bj1ma") dot_radius = 2.0 [node name="TextBoxContainer" type="MarginContainer" parent="UserInterface" unique_id=1384430051] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -500.0 offset_top = -300.0 offset_right = 500.0 grow_horizontal = 2 grow_vertical = 0 theme_override_constants/margin_bottom = 25 [node name="TextBox" type="Label" parent="UserInterface/TextBoxContainer" unique_id=1880207559] layout_mode = 2 size_flags_vertical = 1 text = "Where Am I" script = ExtResource("11_180ig") [node name="Speaker" type="Label" parent="UserInterface/TextBoxContainer/TextBox" unique_id=906263475] layout_mode = 0 offset_top = -22.0 offset_right = 77.0 offset_bottom = 1.0 text = "Architect" [node name="TextBoxBackPanel" type="Panel" parent="UserInterface/TextBoxContainer/TextBox/Speaker" unique_id=928295384] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="TextBoxBackPanel" type="Panel" parent="UserInterface/TextBoxContainer/TextBox" unique_id=1035686870] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="DebugOverlay" type="SubViewportContainer" parent="." unique_id=963593046] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_bottom = 280.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="SubViewport" type="SubViewport" parent="DebugOverlay" unique_id=212264955] transparent_bg = true handle_input_locally = false size = Vector2i(1920, 1080) render_target_update_mode = 4 [node name="VBoxContainer" type="VBoxContainer" parent="DebugOverlay/SubViewport" unique_id=666426091] offset_right = 905.0 offset_bottom = 195.0 theme_override_constants/separation = 15 [node name="CurrentConstructLabel" type="Label" parent="DebugOverlay/SubViewport/VBoxContainer" unique_id=483855760] layout_mode = 2 text = "Current Construct: a really long name" label_settings = SubResource("LabelSettings_180ig") script = ExtResource("10_20koh") [node name="ConstructKeybindingLabel" type="Label" parent="DebugOverlay/SubViewport/VBoxContainer" unique_id=535737146] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 0 text = "Keybinding: 10" label_settings = SubResource("LabelSettings_180ig") [node name="KeysLabel" type="Label" parent="DebugOverlay/SubViewport/VBoxContainer" unique_id=601443975] layout_mode = 2 text = "Keys:" label_settings = SubResource("LabelSettings_180ig")