[gd_scene load_steps=10 format=3 uid="uid://dlevowk0jrhlg"] [ext_resource type="Script" path="res://scripts/dungeon_manager.gd" id="1_dbsm0"] [ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_vc6b5"] [ext_resource type="Script" path="res://scripts/player.gd" id="2_puqns"] [ext_resource type="PackedScene" uid="uid://w7hxcvuvud" path="res://prefabs/bsp_level_generator.tscn" id="4_501hd"] [sub_resource type="Environment" id="Environment_2poci"] background_color = Color(0.130548, 0.170599, 0.433834, 1) ambient_light_source = 2 ambient_light_color = Color(0.244776, 0.244776, 0.244776, 1) ambient_light_energy = 2.27 [sub_resource type="BoxMesh" id="BoxMesh_ox60m"] size = Vector3(0.1, 0.1, 0.5) [sub_resource type="Animation" id="Animation_l0ukc"] resource_name = "RESET" length = 0.001 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:position:x") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } tracks/1/type = "bezier" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath(".:position:y") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(1.5, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } [sub_resource type="Animation" id="Animation_nw35k"] resource_name = "walk" length = 2.0 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:position:x") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 0, 0, 0, 0), "points": PackedFloat32Array(0.04, -0.25, 0, 0.25, 0, 0, 0, 0, 0, 0, -0.04, -0.25, 0, 0.25, 0, 0, 0, 0, 0, 0, 0.04, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 0.5, 1, 1.5, 2) } tracks/1/type = "bezier" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath(".:position:y") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0, 0, 0, 0, 0), "points": PackedFloat32Array(1.45, -0.25, 0, 0.2, 0.005, 1.5, -0.2, 0.000186046, 0.2, 0.000186046, 1.45, -0.2, 0.005, 0.2, 0.005, 1.5, -0.2, 0, 0.2, 0, 1.45, -0.2, 0.005, 0.25, 0), "times": PackedFloat32Array(0, 0.5, 1, 1.5, 2) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_7dyvd"] _data = { "RESET": SubResource("Animation_l0ukc"), "walk": SubResource("Animation_nw35k") } [node name="Node3D" type="Node3D"] script = ExtResource("1_dbsm0") [node name="Node3D" type="WorldEnvironment" parent="."] environment = SubResource("Environment_2poci") [node name="OmniLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, -0.0795405) [node name="Player" parent="." node_paths=PackedStringArray("HEAD", "HEADBOB_ANIMATION") instance=ExtResource("1_vc6b5")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 3) HEAD = NodePath("PlayerCam") HEADBOB_ANIMATION = NodePath("PlayerCam/HeadAnimation") LEFT = "left" RIGHT = "right" FORWARD = "forward" BACKWARD = "backward" jumping_enabled = false in_air_momentum = false sprint_enabled = false crouch_enabled = false [node name="PlayerCam" type="Node3D" parent="Player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0) script = ExtResource("2_puqns") grapple_distance = 50.0 [node name="Camera3D" type="Camera3D" parent="Player/PlayerCam"] current = true [node name="MeshInstance3D" type="MeshInstance3D" parent="Player/PlayerCam"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.215, -0.09, 0) mesh = SubResource("BoxMesh_ox60m") [node name="HeadAnimation" type="AnimationPlayer" parent="Player/PlayerCam"] libraries = { "": SubResource("AnimationLibrary_7dyvd") } [node name="BspLevelGenerator" parent="." instance=ExtResource("4_501hd")] [connection signal="grid_generated" from="BspLevelGenerator" to="." method="_grid_generated"]