diff --git a/materials/tile/debug_barrier.tres b/materials/tile/debug_barrier.tres new file mode 100644 index 0000000..3612585 --- /dev/null +++ b/materials/tile/debug_barrier.tres @@ -0,0 +1,11 @@ +[gd_resource type="StandardMaterial3D" format=3 uid="uid://bdpbtf0uxc860"] + +[resource] +transparency = 2 +alpha_scissor_threshold = 1.0 +alpha_antialiasing_mode = 0 +shading_mode = 0 +albedo_color = Color(0, 0, 0, 0) +uv1_scale = Vector3(0.5, 0.5, 0.5) +uv1_triplanar = true +texture_filter = 0 diff --git a/materials/tile/debug_dark.tres b/materials/tile/debug_dark.tres new file mode 100644 index 0000000..bc0e563 --- /dev/null +++ b/materials/tile/debug_dark.tres @@ -0,0 +1,8 @@ +[gd_resource type="StandardMaterial3D" format=3 uid="uid://dgedw2xytmovm"] + +[resource] +shading_mode = 0 +albedo_color = Color(0, 0, 0, 1) +uv1_scale = Vector3(0.5, 0.5, 0.5) +uv1_triplanar = true +texture_filter = 0 diff --git a/project.godot b/project.godot index 1063075..be75881 100644 --- a/project.godot +++ b/project.godot @@ -161,6 +161,7 @@ hotbar_item_4={ 3d_physics/layer_2="enemies" 3d_physics/layer_5="world geometry" 3d_physics/layer_9="camera" +3d_physics/layer_10="room collision check for procgen" [navigation] diff --git a/scenes/dreamer.tscn b/scenes/dreamer.tscn index dbb77bc..8ff68d5 100644 --- a/scenes/dreamer.tscn +++ b/scenes/dreamer.tscn @@ -45,6 +45,5 @@ path_postprocessing = 2 avoidance_enabled = true neighbor_distance = 1.5 max_speed = 2.5 -debug_enabled = true [connection signal="velocity_computed" from="Navigator" to="." method="_on_navigator_velocity_computed"] diff --git a/scenes/game.tscn b/scenes/game.tscn index 3e186e6..45efecf 100644 --- a/scenes/game.tscn +++ b/scenes/game.tscn @@ -3,28 +3,9 @@ [ext_resource type="Script" uid="uid://dhfun46prq3uk" path="res://scripts/game.gd" id="1_gee14"] [ext_resource type="Script" uid="uid://crf3d7dpjvlsl" path="res://scripts/player_camera.gd" id="1_lnu2h"] [ext_resource type="Script" uid="uid://66iq60cxqomg" path="res://scripts/player.gd" id="1_yqjtg"] -[ext_resource type="Material" uid="uid://bivt02tm06osv" path="res://materials/tile/stone_floor.tres" id="2_gee14"] -[ext_resource type="Material" uid="uid://bekoyi2mq1aiw" path="res://materials/tile/stone_wall.tres" id="3_dinhu"] -[ext_resource type="Material" uid="uid://covj5ljosv6pt" path="res://materials/tile/stone_wall_small_rock.tres" id="4_kvuet"] [ext_resource type="Texture2D" uid="uid://b6krbvbco0jt6" path="res://textures/shadow.png" id="4_lbhrr"] [ext_resource type="PackedScene" uid="uid://cnii80nh1mxr2" path="res://scenes/living/dreamer_body.tscn" id="4_p57ef"] -[ext_resource type="PackedScene" uid="uid://b0kty7juk7rfo" path="res://models/stalagmite.gltf" id="5_iywne"] -[ext_resource type="PackedScene" uid="uid://b6otq05jy7m6d" path="res://scenes/prefabs/brightshroom.tscn" id="9_vtaks"] -[ext_resource type="PackedScene" uid="uid://boelsm35tk0k6" path="res://scenes/prefabs/brightshroom_orange.tscn" id="10_kvpfn"] -[ext_resource type="Texture2D" uid="uid://b8sc3vq5pmwil" path="res://textures/slime.png" id="14_trtic"] -[ext_resource type="Script" uid="uid://btuscff4168hb" path="res://scripts/hide_node.gd" id="16_ca42v"] - -[sub_resource type="Environment" id="Environment_uwrxv"] -background_mode = 1 -background_color = Color(0.38, 0.152, 0.37240002, 1) -tonemap_mode = 2 -volumetric_fog_enabled = true -adjustment_enabled = true -adjustment_brightness = 1.25 -adjustment_contrast = 1.1 - -[sub_resource type="BoxShape3D" id="BoxShape3D_kvuet"] -size = Vector3(16, 16, 8) +[ext_resource type="PackedScene" uid="uid://djvj11avwyffr" path="res://scenes/world_environments/caves1.tscn" id="4_trtic"] [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_yqjtg"] auto_exposure_scale = 0.3 @@ -39,297 +20,15 @@ size = Vector3(1.2, 1, 1.3) radius = 0.15 height = 1.0 -[sub_resource type="NavigationMesh" id="NavigationMesh_kvuet"] -geometry_source_geometry_mode = 1 -cell_size = 0.05 -cell_height = 0.05 - [node name="Game" type="Node3D" unique_id=1358608749] script = ExtResource("1_gee14") -[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1956400862] -environment = SubResource("Environment_uwrxv") - -[node name="CameraZone2" type="Area3D" parent="WorldEnvironment" unique_id=1501599928] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4) -visible = false -monitoring = false -monitorable = false - -[node name="CollisionShape3D" type="CollisionShape3D" parent="WorldEnvironment/CameraZone2" unique_id=693968382] -shape = SubResource("BoxShape3D_kvuet") - -[node name="Offset" type="Node3D" parent="WorldEnvironment/CameraZone2" unique_id=1432752210] - -[node name="Camera" type="Sprite3D" parent="WorldEnvironment/CameraZone2/Offset" unique_id=1992696506] -transform = Transform3D(-4.3711385e-08, -0.7071067, 0.70710677, 0, 0.7071067, 0.70710677, -0.99999994, 3.0908616e-08, -3.090862e-08, 4, 4, 0) -pixel_size = 0.05 -double_sided = false -texture = ExtResource("14_trtic") -script = ExtResource("16_ca42v") - -[node name="Map" type="Node3D" parent="." unique_id=19914124 groups=["navigation_mesh_source_group"]] - -[node name="CSG" type="Node3D" parent="Map" unique_id=1150408155] - -[node name="CSGBox3D2" type="CSGBox3D" parent="Map/CSG" unique_id=1285894233] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(16, 1, 18) -material = ExtResource("2_gee14") - -[node name="CSGBox3D3" type="CSGBox3D" parent="Map/CSG" unique_id=646817034] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 3, -4) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 7, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D10" type="CSGBox3D" parent="Map/CSG" unique_id=850781226] -transform = Transform3D(0.8660254, 0.5, 0, -0.5, 0.8660254, 0, 0, 0, 1, -4.125, 5.5155444, -4) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 3.5, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D6" type="CSGBox3D" parent="Map/CSG" unique_id=647905404] -transform = Transform3D(0.85165083, -0.42261833, 0.30997553, 0.39713126, 0.90630776, 0.14454395, -0.34202015, 0, 0.93969274, -3.2622721, 0.7556524, 0.6872506) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D9" type="CSGBox3D" parent="Map/CSG" unique_id=805609263] -transform = Transform3D(0.85165083, -0.42261833, 0.30997553, 0.39713126, 0.90630776, 0.14454395, -0.34202015, 0, 0.93969274, -3.2622721, 0.7556524, -4.3127494) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D7" type="CSGBox3D" parent="Map/CSG" unique_id=2127978297] -transform = Transform3D(-0.90767354, 0.2588191, -0.330366, 0.24321029, 0.96592575, 0.088521294, 0.3420201, 3.7856495e-08, -0.9396926, -3.5780458, 0.7556524, -1.8127494) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D8" type="CSGBox3D" parent="Map/CSG" unique_id=1149175002] -transform = Transform3D(-0.9254167, 0.17364825, -0.33682403, 0.16317584, 0.98480767, 0.05939115, 0.3420201, 3.7856495e-08, -0.9396926, -3.5780458, 0.7556524, 2.1872506) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D20" type="CSGBox3D" parent="Map/CSG" unique_id=69107394] -transform = Transform3D(0.84405285, -0.2988363, -0.4452773, 0.39713123, 0.9063077, 0.14454393, 0.36036327, -0.29883623, 0.8836488, -1.9678717, 0.7556524, -9.067629) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D21" type="CSGBox3D" parent="Map/CSG" unique_id=444002869] -transform = Transform3D(0.84405285, -0.2988363, -0.4452773, 0.39713123, 0.9063077, 0.14454393, 0.36036327, -0.29883623, 0.8836488, 0.82828665, 0.7556524, -12.175981) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D23" type="CSGBox3D" parent="Map/CSG" unique_id=1865382177] -transform = Transform3D(-0.8836668, 0.18301272, 0.43085897, 0.24321027, 0.96592575, 0.08852128, -0.3999774, 0.18301277, -0.898067, -0.41298687, 1.0922339, -10.631499) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D24" type="CSGBox3D" parent="Map/CSG" unique_id=1440841103] -transform = Transform3D(-0.8962132, 0.122787826, 0.42629248, 0.16317585, 0.9848078, 0.059391156, -0.41252372, 0.12278789, -0.9026336, -3.6531224, 0.7556524, -7.803072) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D19" type="CSGBox3D" parent="Map/CSG" unique_id=641922484] -transform = Transform3D(0.85165083, -0.42261833, 0.30997553, 0.39713126, 0.90630776, 0.14454395, -0.34202015, 0, 0.93969274, -3.2622721, 0.7556524, -7.8127494) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D22" type="CSGBox3D" parent="Map/CSG" unique_id=1793973621] -transform = Transform3D(-0.9254167, 0.17364825, -0.33682403, 0.16317584, 0.98480767, 0.05939115, 0.3420201, 3.7856495e-08, -0.9396926, -3.5780458, 0.7556524, -6.3127494) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 2, 2) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D4" type="CSGBox3D" parent="Map/CSG" unique_id=1670932518] -transform = Transform3D(0.9396926, -0.34202012, 0, 0.34202012, 0.9396926, 0, 0, 0, 1, -4, 1, -4) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D5" type="CSGBox3D" parent="Map/CSG" unique_id=1498895198] -transform = Transform3D(0.5000001, -0.86602545, 0, 0.86602545, 0.5000001, 0, 0, 0, 1, -3.5, 0.5, -4) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D15" type="CSGBox3D" parent="Map/CSG" unique_id=871989333] -transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 3.34375, 3, -14.34375) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 7, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D16" type="CSGBox3D" parent="Map/CSG" unique_id=461304580] -transform = Transform3D(-3.7855173e-08, -2.1855694e-08, -1, -0.5, 0.8660254, 0, 0.8660254, 0.5, -4.371139e-08, 3.34375, 5.5155444, -13.46875) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 3.5, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D17" type="CSGBox3D" parent="Map/CSG" unique_id=120955804] -transform = Transform3D(-4.107527e-08, 1.4950176e-08, -1.0000001, 0.34202015, 0.93969274, 0, 0.9396926, -0.34202012, -4.371139e-08, 3.34375, 1, -13.34375) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D18" type="CSGBox3D" parent="Map/CSG" unique_id=1241532821] -transform = Transform3D(-2.18557e-08, 3.7855173e-08, -1, 0.86602545, 0.5000001, 0, 0.5000001, -0.86602545, -4.371139e-08, 3.34375, 0.5, -12.84375) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("4_kvuet") - -[node name="CSGBox3D11" type="CSGBox3D" parent="Map/CSG" unique_id=1776294785] -transform = Transform3D(0.70710677, 0, -0.70710677, 0, 1, 0, 0.70710677, 0, 0.70710677, -4.7528715, 3, -8.5966215) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 7, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D12" type="CSGBox3D" parent="Map/CSG" unique_id=804263927] -transform = Transform3D(0.6123724, 0.35355338, -0.70710677, -0.5, 0.8660254, 0, 0.6123724, 0.35355338, 0.70710677, -4.134153, 5.5155444, -7.977903) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(2, 3.5, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D13" type="CSGBox3D" parent="Map/CSG" unique_id=1679011295] -transform = Transform3D(0.66446304, -0.24184476, -0.7071068, 0.34202015, 0.93969274, 0, 0.664463, -0.24184474, 0.70710677, -4.0457644, 1, -7.8895144) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("3_dinhu") - -[node name="CSGBox3D14" type="CSGBox3D" parent="Map/CSG" unique_id=737262338] -transform = Transform3D(0.35355347, -0.61237246, -0.70710677, 0.86602545, 0.5000001, 0, 0.35355347, -0.61237246, 0.70710677, -3.6922112, 0.5, -7.535961) -layers = 1023 -use_collision = true -collision_layer = 255 -collision_mask = 255 -size = Vector3(1, 3, 16) -material = ExtResource("4_kvuet") - -[node name="Props" type="Node3D" parent="Map" unique_id=2137952764] - -[node name="Stalagmite" parent="Map/Props" unique_id=39322424 instance=ExtResource("5_iywne")] -transform = Transform3D(1, 0, 0, 0, 0.8, 0, 0, 0, 1, 1, 0.48141205, -6.5) - -[node name="Stalagmite5" parent="Map/Props" unique_id=1945315033 instance=ExtResource("5_iywne")] -transform = Transform3D(0.9998552, 0, -0.017016139, 0, 0.8, 0, 0.017016139, 0, 0.9998552, 4.488328, 0.48141205, -6.5) - -[node name="Stalagmite6" parent="Map/Props" unique_id=2097625970 instance=ExtResource("5_iywne")] -transform = Transform3D(1, 0, 0, 0, 0.8, 0, 0, 0, 1, -1, 0.48141205, -6.5) - -[node name="Stalagmite4" parent="Map/Props" unique_id=1700522460 instance=ExtResource("5_iywne")] -transform = Transform3D(-1, -8.742278e-08, 0, 8.742278e-08, -1, 0, 0, 0, 1, 0, 6.981412, -0.5) - -[node name="Stalagmite2" parent="Map/Props" unique_id=703385516 instance=ExtResource("5_iywne")] -transform = Transform3D(0.81915206, 0, -0.57357645, 0, 1, 0, 0.57357645, 0, 0.81915206, -1.5, 0.48141205, -1) - -[node name="Stalagmite3" parent="Map/Props" unique_id=370634587 instance=ExtResource("5_iywne")] -transform = Transform3D(0.50000006, 0, -0.86602557, 0, 0.9, 0, 0.86602557, 0, 0.50000006, -2, 0.48141205, -3) - -[node name="blockbench_export" parent="Map/Props" unique_id=1509742770 instance=ExtResource("9_vtaks")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.482732, 0.4921612, -4.548477) - -[node name="blockbench_export3" parent="Map/Props" unique_id=231004769 instance=ExtResource("9_vtaks")] -transform = Transform3D(0.64278764, 0, -0.76604444, 0, 1, 0, 0.76604444, 0, 0.64278764, -0.5172682, 0.4921612, -5.548477) - -[node name="blockbench_export2" parent="Map/Props" unique_id=992880863 instance=ExtResource("10_kvpfn")] -transform = Transform3D(0.34202015, 0, -0.9396926, 0, 1, 0, 0.9396926, 0, 0.34202015, -0.2643292, 0.49367946, 1.0695834) - -[node name="blockbench_export4" parent="Map/Props" unique_id=1001222209 instance=ExtResource("10_kvpfn")] -transform = Transform3D(0.34202015, 0, -0.9396926, 0, 1, 0, 0.9396926, 0, 0.34202015, 4.735671, 0.49367946, -9.930416) +[node name="WorldEnvironment" parent="." unique_id=972144381 instance=ExtResource("4_trtic")] [node name="Entities" type="Node3D" parent="." unique_id=227401299] [node name="CameraZones" type="Node3D" parent="." unique_id=1225967945] -[node name="CameraZone" type="Area3D" parent="CameraZones" unique_id=1280290524] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="CameraZones/CameraZone" unique_id=1757431784] -shape = SubResource("BoxShape3D_kvuet") - -[node name="Offset" type="Node3D" parent="CameraZones/CameraZone" unique_id=1829870767] - -[node name="Camera" type="Sprite3D" parent="CameraZones/CameraZone/Offset" unique_id=1388726824] -transform = Transform3D(0.7071067, -0.40557975, 0.5792279, 0, 0.81915194, 0.5735764, -0.7071067, -0.40557975, 0.5792279, 4, 4, 4) -pixel_size = 0.05 -double_sided = false -texture = ExtResource("14_trtic") -script = ExtResource("16_ca42v") - [node name="PlayerCamera" type="Camera3D" parent="." unique_id=1101523944] transform = Transform3D(0.70710677, -0.40557978, 0.579228, 0, 0.819152, 0.57357645, -0.70710677, -0.40557978, 0.579228, 4, 6.5, 0) attributes = SubResource("CameraAttributesPractical_yqjtg") @@ -415,6 +114,3 @@ size_flags_horizontal = 3 show_percentage = false indeterminate = true editor_preview_indeterminate = false - -[node name="Navmesh" type="NavigationRegion3D" parent="." unique_id=2121822586] -navigation_mesh = SubResource("NavigationMesh_kvuet") diff --git a/scenes/marker/room_collision_procgen.tscn b/scenes/marker/room_collision_procgen.tscn new file mode 100644 index 0000000..d48b7ed --- /dev/null +++ b/scenes/marker/room_collision_procgen.tscn @@ -0,0 +1,6 @@ +[gd_scene format=3 uid="uid://bxnxusr283opg"] + +[node name="RoomCollision" type="Area3D" unique_id=687611902] +collision_layer = 0 +collision_mask = 0 +monitorable = false diff --git a/scenes/procgens/test1/item_2.tscn b/scenes/procgens/test1/item_2.tscn index 77b83d0..0ff5ddc 100644 --- a/scenes/procgens/test1/item_2.tscn +++ b/scenes/procgens/test1/item_2.tscn @@ -1,28 +1,329 @@ [gd_scene format=3 uid="uid://cccs7ovmoolcw"] -[ext_resource type="Material" uid="uid://bivt02tm06osv" path="res://materials/tile/stone_floor.tres" id="1_u1b08"] -[ext_resource type="PackedScene" uid="uid://bpkg5vy54815e" path="res://scenes/marker/procedural_start.tscn" id="2_hdacx"] -[ext_resource type="PackedScene" uid="uid://dw1whdwjephca" path="res://scenes/marker/procedural_end.tscn" id="3_kycyq"] +[ext_resource type="Texture2D" uid="uid://b8sc3vq5pmwil" path="res://textures/slime.png" id="1_gmb85"] +[ext_resource type="Script" uid="uid://bkfcwdvdolucv" path="res://scripts/marker/camera_zone_marker.gd" id="2_34y7p"] +[ext_resource type="Material" uid="uid://covj5ljosv6pt" path="res://materials/tile/stone_wall_small_rock.tres" id="3_hxkv3"] +[ext_resource type="Material" uid="uid://bivt02tm06osv" path="res://materials/tile/stone_floor.tres" id="4_oqcs1"] +[ext_resource type="Material" uid="uid://dgedw2xytmovm" path="res://materials/tile/debug_dark.tres" id="5_45e71"] +[ext_resource type="Material" uid="uid://bdpbtf0uxc860" path="res://materials/tile/debug_barrier.tres" id="6_ugrar"] +[ext_resource type="Material" uid="uid://bekoyi2mq1aiw" path="res://materials/tile/stone_wall.tres" id="7_n7wgk"] +[ext_resource type="PackedScene" uid="uid://b6otq05jy7m6d" path="res://scenes/prefabs/brightshroom.tscn" id="8_mker7"] +[ext_resource type="PackedScene" uid="uid://boelsm35tk0k6" path="res://scenes/prefabs/brightshroom_orange.tscn" id="9_yf0ev"] +[ext_resource type="PackedScene" uid="uid://d2v1prhy01lcv" path="res://scenes/marker/procgen_spawn.tscn" id="10_2jj6y"] +[ext_resource type="PackedScene" uid="uid://bpkg5vy54815e" path="res://scenes/marker/procedural_start.tscn" id="11_s54lw"] +[ext_resource type="PackedScene" uid="uid://dw1whdwjephca" path="res://scenes/marker/procedural_end.tscn" id="12_gtkkm"] +[ext_resource type="PackedScene" uid="uid://bes8qlakdmyr6" path="res://scenes/marker/aggro_zone.tscn" id="13_keph6"] +[ext_resource type="PackedScene" uid="uid://bxnxusr283opg" path="res://scenes/marker/room_collision_procgen.tscn" id="14_rknlx"] +[ext_resource type="PackedScene" uid="uid://djvj11avwyffr" path="res://scenes/world_environments/caves1.tscn" id="15_rlvgr"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_ntn1o"] +size = Vector3(20, 21.5, 18) + +[sub_resource type="BoxShape3D" id="BoxShape3D_itmm1"] +size = Vector3(18, 12, 12) + +[sub_resource type="BoxShape3D" id="BoxShape3D_uh1gl"] +size = Vector3(20, 12, 21.25) + +[sub_resource type="NavigationMesh" id="NavigationMesh_pn80y"] +vertices = PackedVector3Array(4.15, 2.7, -7.3957534, 4.3, 2.7, -7.4957533, 4.3, 2.7, -7.6457534, 2.65, 2.7, -6.9957533, 2.9, 2.7, -6.945753, 3.8000002, 2.7, -8.945753, 2.5500002, 2.7, -8.495753, -0.64999986, 0.6000001, -8.145754, -0.45000005, 0.6000001, -8.145754, -0.099999905, 0.6000001, -8.745753, -1.45, 0.6000001, -8.7957535, -1.3, 0.6000001, -8.2957535, 3.5500002, 0.6000001, -4.0457535, 3.35, 0.6000001, -4.0457535, 3.4500003, 0.6000001, -3.8957534, -0.64999986, 0.6000001, 0.40424633, -0.64999986, 0.6000001, 0.65424633, -0.29999995, 0.6000001, 0.5042467, 3.4, 0.6000001, -3.6457534, 10.1, 0.6000001, -6.5957537, 3.75, 0.6000001, -4.2457533, 0.5, 0.6000001, -3.8957534, 0.20000005, 0.6000001, -3.7457533, 0.1500001, 0.6000001, -3.5957532, -0.25, 0.6000001, -1.7457533, 2.4, 0.6000001, -3.5457535, 2.2000003, 0.6000001, -3.7457533, -0.049999952, 0.6000001, 0.5042467, 0.20000005, 0.6000001, 1.4542465, -0.14999986, 0.6000001, 1.6042471, -0.14999986, 0.6000001, 3.7042465, -0.8499999, 0.6000001, 0.20424652, -0.5999999, 0.6000001, -1.6457534, -1.5, 0.6000001, -0.5457535, 15.75, 0.6000001, -0.7457533, 15.5, 0.6000001, -0.7457533, 15, 0.6000001, -0.1457529, 15.450001, 0.6000001, 0.7042465, 15.75, 0.6000001, 0.7042465, -1.3, 0.6000001, 0.3542471, 4.8500004, 0.6000001, -7.1957536, 4.6500006, 0.6000001, -7.0457535, 3.75, 0.6000001, -4.845753, 0.1500001, 0.6000001, 0.65424633, 15.25, 0.6000001, 0.90424633, 14.5, 0.6000001, -0.04575348, 0.3000002, 0.6000001, 1.0042467, 3.25, 0.6000001, -3.5457535, 13.1, 0.6000001, -4.345753, 12.550001, 0.6000001, -5.3957534, 12.05, 0.6000001, -5.0957537, 12.85, 0.6000001, -1.6957536, 13.15, 0.6000001, -2.1457534, 12.2, 0.6000001, -2.9457536, -1.3, 0.6000001, -1.7457533, 11.8, 0.6000001, -5.0957537, 12.150001, 0.6000001, -3.2457533, 2.9, 0.6000001, -6.445753, 2.9500003, 0.6000001, -5.0457535, 3.5500002, 0.6000001, -5.0457535, 10.3, 0.6000001, -7.0457535, 11.35, 0.6000001, -8.145754, 11.35, 0.6000001, -8.245753, 4.4000006, 0.6000001, -8.7957535, 4.9000006, 0.6000001, -7.4457536, 12.9, 0.6000001, -1.3957534, 2.2000003, 0.6000001, -4.1457534, 0.5500002, 0.6000001, -4.1957536, 15.25, 0.6000001, 3.7042465, 0.3000002, 0.6000001, 1.3042469, 11.05, 0.6000001, -5.6457534, 12.150001, 0.6000001, -8.7957535, 14, 0.6000001, -8.7957535, 14.050001, 0.6000001, -8.695753, 14.25, 0.6000001, -8.745753, 2.2000003, 2.7, -8.395754, 2.0500002, 2.85, -8.195753, 2.29, 2.7, -7.7157536, 2.3000002, 2.4, -6.695753, 0.4500003, 2.7, -7.6957536, 0.4500003, 2.65, -7.4957533, 0.9500003, 2.3, -6.2457533, 2.4750004, 2.45, -6.8457537, 13.800001, 2.8, -6.945753, 13.9, 2.9, -6.695753, 14.050001, 2.9, -6.695753, 14.15, 2.45, -7.7457533, 13.9, 2.65, -7.6957536, 13.866667, 2.6, -7.4457536, 14.950001, 2.1, -8.445753, 14.200001, 2.2, -8.245753, 15.25, 2.75, -7.0957537, 15.25, 2.45, -7.6957536, 13.300001, 2.45, -6.6457534, 13.300001, 2.45, -6.5957537, 13.450001, 2.45, -6.5957537, 13.450001, 2.5, -6.945753, 13.300001, 2.55, -7.0957537, 13.550001, 2.75, -8.2957535, 12.25, 2.65, -7.8457537, 13.700001, 2.65, -7.7957535, 13.625, 2.8, -6.945753, -0.75, 2.5, -7.6457534, -0.79999995, 2.45, -7.7457533, -1.2, 2.25, -7.7957535, -1.0999999, 2.4, -7.2957535, -2, 2.45, -6.4957533, -1.9499999, 2.3, -6.3457537, -1.55, 2.45, -6.2957535, -1.25, 2.55, -7.1457534, -1.45, 2.55, -7.1457534, -1.325, 2.5, -6.9332533, -1.5999999, 2.6, -7.2957535, -2.3, 2.45, -6.5457535, -3.2, 2.55, -7.0957537, -2.9, 2.4, -6.2957535, -1.9499999, 2.75, -8.245753, -3.2, 2.65, -7.8457537, -1.2124999, 2.5, -7.0457535, -2.25, 0.6000001, -6.8957534, -2.1, 0.6000001, -7.5957537, -2.1, 0.65000004, -7.8457537, -3.2, 0.65000004, -7.8457537, -3.2, 0.6000001, -7.5957537, -2.85, 0.6000001, -6.6457534, 13.15, 2.45, -6.5457535, 11.95, 2.8, -7.3957534, 11.95, 2.85, -7.6957536, 11.7, 2.75, -7.6957536, 11.6, 2.75, -7.7957535, 12.25, 2.6, -6.195753, 12.924999, 2.45, -6.4582534, 12.700001, 2.8, -6.3707533, 12.512501, 2.75, -6.2957535, 13.0375, 2.45, -6.4957533, 12.85, 2.95, -6.5957537, 13, 2.45, -6.5707536, 10.7, 2.1, -6.7457533, 10.7, 2.1, -6.6457534, 11.8, 2.3, -5.6457534, 14.65, 0.6000001, -6.945753, 15.15, 0.6000001, -6.945753, 14.9, 0.6000001, -7.7957535, 14.450001, 0.6000001, -7.6457534, 2.0500002, 0.65000004, -7.7457533, 0.8499999, 0.65000004, -7.7457533, 1.0999999, 0.6000001, -7.4957533, 1, 0.6000001, -6.7457533, 2.25, 0.6000001, -7.1457534, 11.45, 0.6000001, -6.7957535, 12.05, 0.6000001, -6.3457537, 11.7, 0.6000001, -7.4457536, 11.3, 0.6000001, -7.0457535, 0.3499999, 2.45, -5.7957535, 0.049999952, 2.55, -5.8457537, -0.14999986, 2.55, -5.5957537, -0.8499999, 2.55, -4.4957533, -0.5, 2.45, -4.345753, 0.10000014, 2.3, -4.2957535, -1.3999999, 2.65, -4.2957535, -1.05, 2.7, -4.2457533, -0.5999999, 2.65, -5.6457534, -1.3, 2.75, -5.0957537, -1.2249999, 2.6, -4.2707534, -0.9499998, 2.55, -4.3707533, -0.64999986, 2.9, -5.945753, -0.5, 2.95, -6.0457535, -0.45000005, 2.85, -6.4957533, -0.625, 2.65, -5.7957535, -0.8125, 2.7, -5.7332535, 2.4, 0.6000001, -4.4457536, 2.7000003, 0.6000001, -4.345753, 2.7000003, 0.6000001, -4.845753, 2.25, 0.6000001, -4.345753, 0.8000002, 0.6000001, -5.7457533, 13.6, 0.6000001, -5.3957534, 13.300001, 0.6000001, -6.0957537, 13, 0.6000001, -5.945753, 13.6, 0.6000001, -4.9457536, 14.550001, 0.6000001, -5.195753, 15.25, 0.6000001, -4.5457535, 15.25, 0.6000001, -5.7457533, 14, 0.6000001, -5.2957535, 14.15, 0.6000001, -5.2457533, 13.75, 0.6000001, -5.2957535, -2.15, 0.6000001, -5.695753, -2.3, 0.6000001, -6.0457535, -2.9, 0.6000001, -5.7957535, -2.6999998, 0.6000001, -4.845753, -2.35, 0.6000001, -4.845753, -3.2, 0.6000001, -5.8457537, -2.9, 0.6000001, -4.6457534, -3.2, 0.6000001, -3.4957533, -3.1, 0.6000001, -3.5457535, -0.29999995, 0.6000001, -4.5457535, -0.14999986, 0.6000001, -5.1457534, -0.25, 0.6000001, -5.2957535, -1, 0.65000004, -5.3957534, -1.3499999, 0.65000004, -4.7957535, -1.3, 0.6000001, -4.6957536, 2.8000002, 2.6, -4.9457536, 2.8000002, 2.5, -4.095753, 3.6, 2.55, -4.095753, 3.6, 2.6, -4.9457536, -2.4, 2.65, -2.7457533, -1.9499999, 2.7, -2.5457535, -1.85, 2.75, -2.6457534, -2.125, 2.6, -2.695753, -2.175, 2.6, -2.6457534, -1.5999999, 2.5, -4.0457535, -1.5, 2.5, -4.1707535, -2.4, 2.35, -3.2457533, -1.3499999, 2.95, -2.5957532, -1.9, 2.35, -4.095753, 14.1, 2.65, -2.5457535, 14.800001, 2.9, -2.9457536, 14.75, 2.95, -3.2457533, 14.262501, 2.6, -2.7207537, 14.333334, 2.6, -2.6790867, 13.800001, 2.4, -2.6457534, 13.550001, 2.7, -4.2457533, 12.800001, 2.15, -3.2957535, 12.75, 2.1, -3.0957532, 13.550001, 2.25, -2.3957534, 13.800001, 0.6000001, -2.9957533, 13.950001, 0.6000001, -2.9957533, 14.15, 0.6000001, -3.2957535, 13.35, 0.6000001, -3.4957533, 13.75, 0.6000001, -4.0457535, 14.35, 0.6000001, -3.3957534, 13.950001, 0.6000001, -4.1457534, -2, 0.6000001, -3.4957533, -2, 0.6000001, -3.1957536, -1.3999999, 0.6000001, -3.0457535, -1, 0.6000001, -3.7457533, -1.9, 0.6000001, -3.9457536, 14.15, 2.65, -2.2957535, 13.950001, 2.7, -2.1457534, 13.75, 2.75, -1.7457533, 14.3125, 2.6, -2.4582534, 15.25, 2.45, -2.5457535, 14.950001, 2.65, -0.7957535, 15.25, 2.6, -1.1457534, 14.950001, 2.45, -2.8124204, -1.9499999, 2.5, -2.1957536, -2.75, 2.7, -2.6457534, -2.15, 2.45, -0.9957533, -1.85, 2.4, -1.0457535, -3.15, 2.7, -1.9457536, -3.2, 2.65, -1.1957536, -1.7, 2.5, -2.1457534, -3.75, 11.6, -2.3957534, -3.75, 11.6, -1.8457532, -3.55, 11.6, -2.1457534, 14.6, 0.6000001, -1.8457532, 14.300001, 0.65000004, -1.7457533, 14.4, 0.65000004, -1.3957534, 15.25, 0.6000001, -2.1457534, 15.050001, 0.6000001, -2.2957535, 14.700001, 0.6000001, -2.0457535, 14.75, 0.65000004, -0.8957529, 15.25, 0.6000001, -1.3957534, -2.05, 0.6000001, -1.6957536, -2.05, 0.6000001, -1.9457536, -2.55, 0.6000001, -1.9957533, -2.4, 0.6000001, -1.1957536, -2.15, 0.6000001, -1.1957536, -3.2, 0.65000004, -1.8457532, -3.2, 0.6000001, -1.3457532, -2.9, 0.65000004, -2.2457533, -1.85, 0.6000001, -0.4457531, -1.5, 0.6000001, 0.5542469, -3.75, 0.6000001, -0.7457533, -3.75, 0.6000001, 0.7042465, -3.4, 0.6000001, 0.7042465, -3.25, 0.6000001, -0.7457533, -1.45, 0.6000001, 0.8542471, -3.2, 0.6000001, 0.9542465, -0.79999995, 2.5, 0.8042469, -0.5999999, 2.55, 1.5542469, 0.20000005, 2.6, 1.3042469, 0, 2.6, 0.5542469, -1.25, 0.6000001, 1.4042463, -0.79999995, 0.6000001, 3.7042465, -0.79999995, 0.6000001, 1.5042467, -1.05, 0.6000001, 1.5542469, -3.2, 0.6000001, 3.7042465, -0.64999986, 0.6000001, 1.5542469, -0.70000005, 0.6000001, 1.3542471, -0.5, 0.6000001, 1.6542463, -3.2, 0.6000001, 4.5042467, -3.2, 0.6000001, 12.004248, 15.25, 0.6000001, 12.004248, 15.25, 0.6000001, 4.5042467) +polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(4, 3, 0), PackedInt32Array(0, 3, 2), PackedInt32Array(2, 3, 6), PackedInt32Array(2, 6, 5), PackedInt32Array(8, 7, 9), PackedInt32Array(9, 7, 11), PackedInt32Array(9, 11, 10), PackedInt32Array(14, 13, 12), PackedInt32Array(17, 16, 15), PackedInt32Array(14, 12, 18), PackedInt32Array(18, 12, 20), PackedInt32Array(18, 20, 19), PackedInt32Array(22, 21, 23), PackedInt32Array(23, 21, 26), PackedInt32Array(23, 26, 25), PackedInt32Array(23, 25, 24), PackedInt32Array(27, 17, 15), PackedInt32Array(30, 29, 28), PackedInt32Array(15, 31, 27), PackedInt32Array(27, 31, 33), PackedInt32Array(27, 33, 32), PackedInt32Array(27, 32, 24), PackedInt32Array(35, 34, 36), PackedInt32Array(36, 34, 37), PackedInt32Array(37, 34, 38), PackedInt32Array(31, 39, 33), PackedInt32Array(41, 40, 42), PackedInt32Array(42, 40, 20), PackedInt32Array(20, 40, 19), PackedInt32Array(43, 27, 24), PackedInt32Array(37, 44, 36), PackedInt32Array(36, 44, 45), PackedInt32Array(43, 24, 46), PackedInt32Array(46, 24, 25), PackedInt32Array(46, 25, 47), PackedInt32Array(50, 49, 48), PackedInt32Array(53, 52, 51), PackedInt32Array(33, 54, 32), PackedInt32Array(50, 48, 55), PackedInt32Array(55, 48, 56), PackedInt32Array(59, 58, 57), PackedInt32Array(61, 60, 62), PackedInt32Array(62, 60, 64), PackedInt32Array(62, 64, 63), PackedInt32Array(51, 65, 53), PackedInt32Array(53, 65, 19), PackedInt32Array(67, 66, 21), PackedInt32Array(21, 66, 26), PackedInt32Array(45, 44, 65), PackedInt32Array(65, 44, 68), PackedInt32Array(69, 30, 28), PackedInt32Array(19, 70, 53), PackedInt32Array(59, 57, 42), PackedInt32Array(42, 57, 41), PackedInt32Array(71, 62, 63), PackedInt32Array(47, 18, 46), PackedInt32Array(46, 18, 69), PackedInt32Array(56, 53, 55), PackedInt32Array(55, 53, 70), PackedInt32Array(40, 64, 19), PackedInt32Array(19, 64, 60), PackedInt32Array(69, 18, 30), PackedInt32Array(30, 18, 19), PackedInt32Array(30, 19, 65), PackedInt32Array(30, 65, 68), PackedInt32Array(73, 72, 74), PackedInt32Array(75, 6, 76), PackedInt32Array(76, 6, 77), PackedInt32Array(77, 6, 3), PackedInt32Array(3, 82, 77), PackedInt32Array(77, 82, 78), PackedInt32Array(77, 78, 76), PackedInt32Array(76, 78, 81), PackedInt32Array(76, 81, 80), PackedInt32Array(76, 80, 79), PackedInt32Array(84, 83, 85), PackedInt32Array(85, 83, 88), PackedInt32Array(85, 88, 87), PackedInt32Array(85, 87, 86), PackedInt32Array(90, 89, 86), PackedInt32Array(86, 89, 92), PackedInt32Array(86, 92, 91), PackedInt32Array(86, 91, 85), PackedInt32Array(95, 94, 93), PackedInt32Array(95, 93, 96), PackedInt32Array(96, 93, 97), PackedInt32Array(100, 97, 98), PackedInt32Array(98, 97, 99), PackedInt32Array(96, 97, 101), PackedInt32Array(101, 97, 83), PackedInt32Array(83, 97, 88), PackedInt32Array(88, 97, 87), PackedInt32Array(87, 97, 100), PackedInt32Array(103, 102, 104), PackedInt32Array(104, 102, 105), PackedInt32Array(109, 111, 110), PackedInt32Array(110, 111, 108), PackedInt32Array(110, 108, 106), PackedInt32Array(106, 108, 107), PackedInt32Array(110, 106, 112), PackedInt32Array(112, 106, 113), PackedInt32Array(115, 114, 113), PackedInt32Array(113, 114, 117), PackedInt32Array(113, 117, 112), PackedInt32Array(112, 117, 116), PackedInt32Array(105, 102, 118), PackedInt32Array(118, 102, 108), PackedInt32Array(105, 118, 109), PackedInt32Array(109, 118, 111), PackedInt32Array(111, 118, 108), PackedInt32Array(120, 119, 121), PackedInt32Array(121, 119, 124), PackedInt32Array(121, 124, 123), PackedInt32Array(121, 123, 122), PackedInt32Array(125, 93, 94), PackedInt32Array(128, 127, 126), PackedInt32Array(129, 128, 126), PackedInt32Array(94, 134, 125), PackedInt32Array(125, 134, 131), PackedInt32Array(131, 134, 132), PackedInt32Array(132, 134, 133), PackedInt32Array(132, 133, 130), PackedInt32Array(125, 131, 136), PackedInt32Array(136, 131, 135), PackedInt32Array(135, 131, 132), PackedInt32Array(135, 132, 130), PackedInt32Array(135, 130, 126), PackedInt32Array(137, 129, 138), PackedInt32Array(138, 129, 126), PackedInt32Array(138, 126, 130), PackedInt32Array(138, 130, 139), PackedInt32Array(143, 142, 140), PackedInt32Array(140, 142, 141), PackedInt32Array(144, 146, 145), PackedInt32Array(144, 148, 146), PackedInt32Array(146, 148, 147), PackedInt32Array(152, 151, 149), PackedInt32Array(149, 151, 150), PackedInt32Array(154, 153, 155), PackedInt32Array(155, 153, 158), PackedInt32Array(155, 158, 157), PackedInt32Array(155, 157, 156), PackedInt32Array(160, 163, 164), PackedInt32Array(164, 163, 156), PackedInt32Array(156, 163, 159), PackedInt32Array(156, 159, 162), PackedInt32Array(156, 162, 161), PackedInt32Array(156, 161, 155), PackedInt32Array(167, 166, 165), PackedInt32Array(165, 168, 169), PackedInt32Array(169, 168, 161), PackedInt32Array(169, 161, 162), PackedInt32Array(165, 169, 167), PackedInt32Array(167, 169, 162), PackedInt32Array(172, 171, 170), PackedInt32Array(170, 173, 172), PackedInt32Array(172, 173, 57), PackedInt32Array(57, 173, 174), PackedInt32Array(174, 173, 67), PackedInt32Array(57, 58, 172), PackedInt32Array(173, 66, 67), PackedInt32Array(176, 175, 177), PackedInt32Array(177, 175, 178), PackedInt32Array(177, 178, 49), PackedInt32Array(49, 178, 48), PackedInt32Array(181, 180, 179), PackedInt32Array(183, 182, 179), PackedInt32Array(179, 182, 181), PackedInt32Array(175, 184, 178), PackedInt32Array(182, 183, 184), PackedInt32Array(184, 183, 178), PackedInt32Array(186, 185, 187), PackedInt32Array(187, 185, 189), PackedInt32Array(187, 189, 188), PackedInt32Array(187, 188, 190), PackedInt32Array(190, 188, 191), PackedInt32Array(193, 192, 191), PackedInt32Array(191, 192, 190), PackedInt32Array(195, 194, 196), PackedInt32Array(196, 194, 197), PackedInt32Array(197, 194, 199), PackedInt32Array(197, 199, 198), PackedInt32Array(203, 202, 200), PackedInt32Array(200, 202, 201), PackedInt32Array(204, 207, 208), PackedInt32Array(208, 207, 205), PackedInt32Array(205, 207, 206), PackedInt32Array(159, 163, 210), PackedInt32Array(210, 163, 209), PackedInt32Array(209, 163, 160), PackedInt32Array(204, 211, 207), PackedInt32Array(207, 211, 206), PackedInt32Array(206, 211, 212), PackedInt32Array(212, 211, 209), PackedInt32Array(212, 209, 160), PackedInt32Array(211, 213, 209), PackedInt32Array(214, 217, 218), PackedInt32Array(218, 217, 215), PackedInt32Array(215, 217, 216), PackedInt32Array(214, 219, 217), PackedInt32Array(217, 219, 216), PackedInt32Array(216, 219, 222), PackedInt32Array(216, 222, 221), PackedInt32Array(216, 221, 220), PackedInt32Array(219, 223, 222), PackedInt32Array(225, 224, 226), PackedInt32Array(226, 224, 227), PackedInt32Array(228, 230, 227), PackedInt32Array(227, 230, 226), PackedInt32Array(226, 230, 229), PackedInt32Array(231, 235, 232), PackedInt32Array(232, 235, 233), PackedInt32Array(233, 235, 234), PackedInt32Array(238, 237, 236), PackedInt32Array(236, 214, 239), PackedInt32Array(239, 214, 218), PackedInt32Array(239, 218, 215), PackedInt32Array(215, 243, 239), PackedInt32Array(239, 243, 236), PackedInt32Array(236, 243, 240), PackedInt32Array(236, 240, 238), PackedInt32Array(238, 240, 242), PackedInt32Array(238, 242, 241), PackedInt32Array(205, 244, 208), PackedInt32Array(208, 244, 204), PackedInt32Array(204, 244, 245), PackedInt32Array(247, 246, 244), PackedInt32Array(244, 246, 249), PackedInt32Array(244, 249, 248), PackedInt32Array(244, 248, 245), PackedInt32Array(244, 250, 247), PackedInt32Array(253, 252, 251), PackedInt32Array(254, 256, 255), PackedInt32Array(259, 258, 257), PackedInt32Array(254, 259, 256), PackedInt32Array(256, 259, 257), PackedInt32Array(256, 257, 261), PackedInt32Array(256, 261, 260), PackedInt32Array(264, 263, 262), PackedInt32Array(266, 265, 262), PackedInt32Array(262, 265, 264), PackedInt32Array(264, 265, 267), PackedInt32Array(267, 265, 268), PackedInt32Array(267, 269, 264), PackedInt32Array(33, 39, 270), PackedInt32Array(270, 39, 271), PackedInt32Array(273, 272, 274), PackedInt32Array(274, 272, 275), PackedInt32Array(271, 276, 270), PackedInt32Array(270, 276, 277), PackedInt32Array(270, 277, 274), PackedInt32Array(270, 274, 275), PackedInt32Array(281, 280, 278), PackedInt32Array(278, 280, 279), PackedInt32Array(276, 282, 277), PackedInt32Array(285, 284, 283), PackedInt32Array(282, 285, 277), PackedInt32Array(277, 285, 286), PackedInt32Array(286, 285, 283), PackedInt32Array(284, 288, 287), PackedInt32Array(287, 289, 284), PackedInt32Array(284, 289, 283), PackedInt32Array(29, 30, 289), PackedInt32Array(289, 30, 283), PackedInt32Array(293, 292, 290), PackedInt32Array(290, 292, 291)] +geometry_source_geometry_mode = 1 +cell_size = 0.05 +cell_height = 0.05 +border_size = 0.25 +agent_radius = 0.25 [node name="Item2" type="Node3D" unique_id=1898621031] -[node name="Geometry" type="Node3D" parent="." unique_id=1828031604] +[node name="CameraZones" type="Node3D" parent="." unique_id=1165742227] -[node name="CSGBox3D25" type="CSGBox3D" parent="Geometry" unique_id=93057530] +[node name="CameraZone" type="Area3D" parent="CameraZones" unique_id=71671734] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CameraZones/CameraZone" unique_id=610271491] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 2.75, -5.75) +shape = SubResource("BoxShape3D_ntn1o") + +[node name="Offset" type="Node3D" parent="CameraZones/CameraZone" unique_id=1028960179] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -8.5) + +[node name="Camera" type="Sprite3D" parent="CameraZones/CameraZone/Offset" unique_id=1529595699] +transform = Transform3D(0.7071067, -0.49999994, 0.49999997, 0, 0.7071067, 0.70710677, -0.7071067, -0.49999994, 0.49999997, 4.5, 4.5, 6) +pixel_size = 0.05 +no_depth_test = true +texture = ExtResource("1_gmb85") +script = ExtResource("2_34y7p") +max_distance_x = Vector2(-6, 6) + +[node name="Map" type="Node3D" parent="." unique_id=1108576076 groups=["navigation_mesh_source_group"]] + +[node name="Geometry" type="Node3D" parent="Map" unique_id=1828031604] + +[node name="CSGBox3D9" type="CSGBox3D" parent="Map/Geometry" unique_id=1396107344] +transform = Transform3D(0.34202015, 2.1849495e-08, -0.93969285, -0.0007380545, 0.9999997, -0.00026863813, 0.9396924, 0.0007854104, 0.34202006, 3.3274856, 1.6066083, -7.9569483) layers = 1023 use_collision = true collision_layer = 255 collision_mask = 255 -size = Vector3(8, 1, 8) -material = ExtResource("1_u1b08") +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") -[node name="Label3D" type="Label3D" parent="Geometry" unique_id=1011547739] +[node name="CSGBox3D7" type="CSGBox3D" parent="Map/Geometry" unique_id=1874652609] +transform = Transform3D(-0.34202003, -2.8096418e-08, 0.9396926, 0.24321027, 0.96592575, 0.08852128, -0.90767354, 0.2588191, -0.33036596, 1.4186676, 1.5077593, -7.470636) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D8" type="CSGBox3D" parent="Map/Geometry" unique_id=2003918353] +transform = Transform3D(-0.3420201, -5.2784294e-08, 0.93969274, 0.16317585, 0.9848078, 0.059391156, -0.9254168, 0.17364827, -0.33682403, -2.4201593, 1.5077593, -7.4706364) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D16" type="CSGBox3D" parent="Map/Geometry" unique_id=80926141] +transform = Transform3D(0.90856135, -0.3659982, -0.20139965, 0.3971313, 0.9063078, 0.14454396, 0.12962717, -0.21130912, 0.9687857, -1.5389622, 1.5077593, -3.245469) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D17" type="CSGBox3D" parent="Map/Geometry" unique_id=655291519] +transform = Transform3D(0.90856135, -0.3659982, -0.20139965, 0.3971313, 0.9063078, 0.14454396, 0.12962717, -0.21130912, 0.9687857, -0.6588037, 1.5077593, -6.7734823) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D18" type="CSGBox3D" parent="Map/Geometry" unique_id=1146374046] +transform = Transform3D(-0.9570784, 0.22414392, 0.18374091, 0.2432103, 0.9659259, 0.088521294, -0.15763867, 0.12940957, -0.9789808, -0.7299399, 1.5077593, -5.278284) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D19" type="CSGBox3D" parent="Map/Geometry" unique_id=1678855447] +transform = Transform3D(-0.9724445, 0.15038377, 0.17814818, 0.16317582, 0.98480767, 0.05939114, -0.16651028, 0.08682418, -0.9822098, -2.6493535, 1.5077593, -1.9537625) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D20" type="CSGBox3D" parent="Map/Geometry" unique_id=2093031186] +transform = Transform3D(0.5665411, -0.36599815, 0.7382933, 0.39713135, 0.9063079, 0.14454393, -0.7220235, 0.21130916, 0.65880996, 14.102271, 1.5077593, -3.403356) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D21" type="CSGBox3D" parent="Map/Geometry" unique_id=2026322071] +transform = Transform3D(0.5665411, -0.36599815, 0.7382933, 0.39713135, 0.9063079, 0.14454393, -0.7220235, 0.21130916, 0.65880996, 12.0653715, 1.5077593, -6.9313693) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D23" type="CSGBox3D" parent="Map/Geometry" unique_id=264273922] +transform = Transform3D(-0.6304244, 0.15038383, -0.7615445, 0.16317582, 0.98480767, 0.059391152, 0.7589064, -0.08682406, -0.6453857, 14.665727, 1.5077593, -1.795876) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D14" type="CSGBox3D" parent="Map/Geometry" unique_id=486000335] +transform = Transform3D(0.34202012, 2.1849493e-08, -0.93969274, 0.39713123, 0.9063077, 0.14454393, 0.8516507, -0.42261824, 0.3099755, 14.448769, 1.5077593, -7.1548624) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D15" type="CSGBox3D" parent="Map/Geometry" unique_id=641013883] +transform = Transform3D(-0.3420201, -5.2784294e-08, 0.93969274, 0.16317585, 0.9848078, 0.059391156, -0.9254168, 0.17364827, -0.33682403, 13.072317, 1.5077593, -7.4706364) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D25" type="CSGBox3D" parent="Map/Geometry" unique_id=93057530] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 1, 13) +material = ExtResource("4_oqcs1") + +[node name="CSGBox3D38" type="CSGBox3D" parent="Map/Geometry" unique_id=1392195201] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 1, 8.25) +material = ExtResource("5_45e71") + +[node name="CSGBox3D41" type="CSGBox3D" parent="Map/Geometry" unique_id=295061004] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, 4.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 12, 0.25) +material = ExtResource("6_ugrar") + +[node name="CSGBox3D39" type="CSGBox3D" parent="Map/Geometry" unique_id=1297314690] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.875, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 11.25, 8.25) +material = ExtResource("5_45e71") + +[node name="CSGBox3D40" type="CSGBox3D" parent="Map/Geometry" unique_id=1610157321] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.875, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 11.25, 8.25) +material = ExtResource("5_45e71") + +[node name="CSGBox3D33" type="CSGBox3D" parent="Map/Geometry" unique_id=2014609465] +transform = Transform3D(1, 0, 0, 0, 0.8660254, -0.5, 0, 0.5, 0.8660254, 6, 9.625, -8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 4.25, 0.25) +material = ExtResource("3_hxkv3") + +[node name="CSGBox3D27" type="CSGBox3D" parent="Map/Geometry" unique_id=1749746785] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.5, -4.875) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 7.75) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D36" type="CSGBox3D" parent="Map/Geometry" unique_id=1576072927] +transform = Transform3D(0.8660254, 0, -0.5, 0, 1, 0, 0.5, 0, 0.8660254, -1.6082531, 5.5, -5.3705125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.25, 12, 8.75) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D28" type="CSGBox3D" parent="Map/Geometry" unique_id=917029850] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.5, -4.875) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 7.75) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D29" type="CSGBox3D" parent="Map/Geometry" unique_id=407694411] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.5, 2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 3) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D30" type="CSGBox3D" parent="Map/Geometry" unique_id=1193225118] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.5, 2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 3) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D34" type="CSGBox3D" parent="Map/Geometry" unique_id=585079441] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 7, 0) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 9, 2) +material = ExtResource("7_n7wgk") + +[node name="CSGBox3D35" type="CSGBox3D" parent="Map/Geometry" unique_id=305783878] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 7, 0) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 9, 2) +material = ExtResource("7_n7wgk") + +[node name="Label3D" type="Label3D" parent="Map/Geometry" unique_id=1011547739] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0) billboard = 1 -text = "2" +text = "3" -[node name="ProceduralStart" parent="." unique_id=1915860137 instance=ExtResource("2_hdacx")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0, 0) +[node name="Props" type="Node3D" parent="Map" unique_id=536157616] -[node name="ProceduralEnd" parent="." unique_id=1312865697 instance=ExtResource("3_kycyq")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0) +[node name="blockbench_export" parent="Map/Props" unique_id=1509742770 instance=ExtResource("8_mker7")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.2327318, 0.4921612, -4.548477) + +[node name="blockbench_export2" parent="Map/Props" unique_id=958201971 instance=ExtResource("9_yf0ev")] +transform = Transform3D(0.34202015, 0, -0.9396926, 0, 1, 0, 0.9396926, 0, 0.34202015, -0.2643292, 0.49367946, 1.0695834) + +[node name="Spawns" type="Node3D" parent="." unique_id=1153235281] + +[node name="Spawn" parent="Spawns" unique_id=2054091961 instance=ExtResource("10_2jj6y")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.5, 3, 0.75) + +[node name="ProceduralStart" parent="." unique_id=1915860137 instance=ExtResource("11_s54lw")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0.5, 0) + +[node name="ProceduralEnd" parent="." unique_id=1312865697 instance=ExtResource("12_gtkkm")] +transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 7.75, 0.5, -9) + +[node name="AggroZone" parent="." unique_id=744621063 instance=ExtResource("13_keph6")] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="AggroZone" unique_id=687211074] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, -2) +shape = SubResource("BoxShape3D_itmm1") +debug_color = Color(0.98925954, 0, 0.29793912, 0.41960785) + +[node name="RoomCollision" parent="." unique_id=687611902 instance=ExtResource("14_rknlx")] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="RoomCollision" unique_id=827616244] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, 1.625) +shape = SubResource("BoxShape3D_uh1gl") +debug_color = Color(1.4439226e-07, 0.6509632, 0.0114972815, 0.41960785) + +[node name="Navmesh" type="NavigationRegion3D" parent="." unique_id=775691988] +navigation_mesh = SubResource("NavigationMesh_pn80y") + +[node name="WorldEnvironment" parent="." unique_id=972144381 instance=ExtResource("15_rlvgr")] diff --git a/scenes/procgens/test1/item_3.tscn b/scenes/procgens/test1/item_3.tscn index 376910e..52b8e5f 100644 --- a/scenes/procgens/test1/item_3.tscn +++ b/scenes/procgens/test1/item_3.tscn @@ -1,17 +1,33 @@ [gd_scene format=3 uid="uid://dioufwlo42kfh"] +[ext_resource type="Texture2D" uid="uid://b8sc3vq5pmwil" path="res://textures/slime.png" id="1_aax4s"] +[ext_resource type="Material" uid="uid://covj5ljosv6pt" path="res://materials/tile/stone_wall_small_rock.tres" id="1_blq83"] [ext_resource type="Material" uid="uid://bivt02tm06osv" path="res://materials/tile/stone_floor.tres" id="1_hue54"] [ext_resource type="PackedScene" uid="uid://bpkg5vy54815e" path="res://scenes/marker/procedural_start.tscn" id="2_0r4hg"] [ext_resource type="PackedScene" uid="uid://d2v1prhy01lcv" path="res://scenes/marker/procgen_spawn.tscn" id="2_pn80y"] +[ext_resource type="Script" uid="uid://bkfcwdvdolucv" path="res://scripts/marker/camera_zone_marker.gd" id="2_pvnjl"] +[ext_resource type="Material" uid="uid://bekoyi2mq1aiw" path="res://materials/tile/stone_wall.tres" id="2_rctha"] [ext_resource type="PackedScene" uid="uid://dw1whdwjephca" path="res://scenes/marker/procedural_end.tscn" id="3_pn80y"] [ext_resource type="PackedScene" uid="uid://bes8qlakdmyr6" path="res://scenes/marker/aggro_zone.tscn" id="4_0r4hg"] +[ext_resource type="PackedScene" uid="uid://b6otq05jy7m6d" path="res://scenes/prefabs/brightshroom.tscn" id="4_uwpk4"] +[ext_resource type="Material" uid="uid://dgedw2xytmovm" path="res://materials/tile/debug_dark.tres" id="5_77bgq"] +[ext_resource type="PackedScene" uid="uid://boelsm35tk0k6" path="res://scenes/prefabs/brightshroom_orange.tscn" id="5_t7tcn"] +[ext_resource type="Material" uid="uid://bdpbtf0uxc860" path="res://materials/tile/debug_barrier.tres" id="6_ntn1o"] +[ext_resource type="PackedScene" uid="uid://djvj11avwyffr" path="res://scenes/world_environments/caves1.tscn" id="10_aax4s"] +[ext_resource type="PackedScene" uid="uid://bxnxusr283opg" path="res://scenes/marker/room_collision_procgen.tscn" id="14_pvnjl"] -[sub_resource type="BoxShape3D" id="BoxShape3D_pn80y"] -size = Vector3(8, 4, 8) +[sub_resource type="BoxShape3D" id="BoxShape3D_ntn1o"] +size = Vector3(20, 21.5, 18) + +[sub_resource type="BoxShape3D" id="BoxShape3D_itmm1"] +size = Vector3(18, 12, 12) + +[sub_resource type="BoxShape3D" id="BoxShape3D_uh1gl"] +size = Vector3(20, 12, 21.25) [sub_resource type="NavigationMesh" id="NavigationMesh_pn80y"] -vertices = PackedVector3Array(-3.75, 0.6000001, -3.75, -3.75, 0.6000001, 3.75, 3.75, 0.6000001, 3.75, 3.75, 0.6000001, -3.75) -polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)] +vertices = PackedVector3Array(-3.7002795, 11.6, -1.9329252, -3.5002794, 11.6, -2.232925, -3.7002795, 11.6, -2.482925, -3.6502795, 11.6, -7.132925, -3.7502794, 11.6, -8.782926, -3.7502794, 11.6, 12.017076, -3.6502795, 11.6, 4.2170753, 15.749721, 11.6, -2.482925, 15.549722, 11.6, -2.3329253, 15.549722, 11.6, -2.1829252, 15.749721, 11.6, -1.9329252, 15.699721, 11.6, 4.2170753, 15.799722, 11.6, 12.017076, 15.799722, 11.6, -8.782926, 15.699721, 11.6, -7.132925, 8.349721, 2.6, -7.282925, 8.599721, 2.6, -7.282925, 8.649721, 2.7, -7.4829254, 8.399721, 2.7, -7.682925, 8.149721, 2.8, -8.482925, 7.149721, 2.8, -8.482925, 6.549721, 2.75, -8.232925, 7.049721, 2.5, -6.782925, 2.6497207, 2.7, -8.382925, 2.2497206, 2.7, -8.382925, 1.9997206, 2.8, -8.182925, 2.4997206, 2.5, -6.932925, 2.6497207, 2.7, -6.9829254, 2.3997207, 2.45, -6.7329254, 0.44972086, 2.7, -7.682925, 0.94972086, 2.3, -6.282925, 4.2497206, 2.7, -7.432925, 4.299721, 2.7, -7.632925, 4.199721, 2.7, -7.782925, 4.2497206, 2.7, -8.182925, 4.049721, 2.7, -8.282926, 2.8497205, 2.7, -6.932925, 4.049721, 2.7, -8.382925, -0.7502794, 2.5, -7.632925, -0.7502794, 2.45, -7.7329254, -1.2002795, 2.25, -7.782925, -1.1002793, 2.4, -7.282925, -3.2002795, 2.55, -7.082925, -2.9002795, 2.4, -6.332925, -2.1002793, 2.45, -6.532925, -1.6002793, 2.55, -7.282925, -1.9502794, 2.75, -8.282926, -3.2002795, 2.65, -7.8329253, -1.9502794, 2.3, -6.332925, -1.6002793, 2.45, -6.282925, -1.4502795, 2.55, -7.132925, -1.2252793, 2.5, -7.032925, -1.2502794, 2.55, -7.132925, -1.3377795, 2.5, -6.9204254, -1.5127792, 2.4, -6.495425, 13.14972, 2.55, -7.2329254, 13.299722, 2.5, -6.9829254, 13.499721, 2.7, -7.132925, 12.949721, 2.6, -7.332925, 13.799722, 2.75, -7.082925, 13.749721, 2.65, -7.7329254, 13.549722, 2.75, -8.282926, 12.64972, 2.7, -7.9829254, 13.766387, 2.6, -7.5162582, 15.099721, 2.3, -8.032926, 14.199721, 2.3, -8.032926, 14.199721, 2.4, -7.8329253, 15.249721, 2.75, -7.082925, 15.249721, 2.45, -7.7329254, 13.949721, 2.95, -6.682925, 14.049722, 2.65, -7.682925, 13.899722, 2.65, -7.7079253, 8.799721, 2.6, -7.182925, 10.149721, 2.95, -7.932925, 10.649721, 2.3, -6.632925, 10.69972, 2.45, -6.882925, 10.499721, 2.5, -6.9829254, 9.149721, 2.1, -6.182925, 9.444721, 2.45, -6.9879255, 10.849721, 2.3, -6.582925, 10.899721, 2.25, -6.932925, 10.874721, 2.35, -6.757925, 11.649721, 2.3, -5.782925, 11.899721, 2.4, -5.932925, 11.059721, 2.2, -6.452925, 11.049721, 2.15, -6.382925, 11.899721, 2.8, -7.632925, 11.599721, 2.75, -7.782925, 11.349721, 2.6, -7.582925, 12.149721, 2.65, -5.882925, 12.749721, 2.5, -6.082925, 12.466388, 2.55, -6.032925, 12.608054, 2.8, -6.3412585, 2.8997207, 1.05, -7.2329254, 2.9497209, 0.95, -7.082925, 3.3497205, 1, -7.182925, 14.64972, 0.8, -6.832925, 15.199721, 0.8500001, -6.882925, 15.199721, 0.95, -7.082925, 14.599721, 0.95, -7.082925, -2.8502793, 0.7, -6.682925, -2.2502794, 0.8500001, -6.882925, -2.2502794, 0.90000004, -6.9829254, -2.9502795, 0.90000004, -6.9829254, -0.30027938, 0.8500001, -6.882925, -0.30027938, 0.8, -6.782925, -0.15027928, 0.8, -6.832925, -0.15027928, 0.90000004, -6.9829254, 2.7497206, 0.6000001, -6.382925, 2.8497205, 0.6000001, -5.032925, 3.5497208, 0.6000001, -5.0829253, 3.6997209, 0.6000001, -4.932925, 4.649721, 0.65000004, -6.532925, 4.349721, 0.90000004, -6.9829254, 11.549721, 0.8, -6.782925, 12.049721, 0.6000001, -6.332925, 11.849721, 0.90000004, -6.9829254, 1.0997205, 0.75000006, -6.7329254, 1.3997207, 0.8, -6.832925, 0.9997206, 0.8500001, -6.882925, 0.94972086, 0.8, -6.782925, 3.5497208, 0.6000001, -4.032925, 3.3497205, 0.6000001, -4.032925, 3.4497209, 0.6000001, -3.732925, 3.7497206, 0.6000001, -4.232925, 7.049721, 0.6000001, -6.282925, 6.6997204, 0.6000001, -6.382925, 6.549721, 0.8, -6.832925, 4.9997206, 0.6000001, -6.4829254, 8.799721, 0.6000001, -5.7329254, 8.44972, 0.75000006, -6.7329254, 8.537221, 0.6000001, -6.4829254, 8.94972, 0.6000001, -5.632925, 9.049721, 0.6000001, -1.7829251, 9.349721, 0.6000001, -1.9829249, 3.2997208, 0.6000001, -3.5829253, 9.249721, 0.6000001, -5.632925, 13.299722, 2.5, -6.782925, 13.39972, 2.45, -6.632925, 13.39972, 2.5, -6.832925, 0.34972048, 2.45, -5.782925, 0.049720526, 2.55, -5.832925, -0.15027928, 2.55, -5.5829253, -0.85027933, 2.55, -4.482925, 0.09972072, 2.3, -4.282925, -1.4002793, 2.65, -4.282925, -1.0502794, 2.7, -4.232925, -0.5502794, 2.65, -5.632925, -1.2502794, 2.75, -5.232925, -1.2252793, 2.6, -4.257925, -0.95027924, 2.55, -4.357925, -0.60027933, 2.95, -5.932925, -0.5002794, 2.95, -6.032925, -0.40027928, 2.85, -6.582925, -0.57527924, 2.65, -5.782925, -0.76277924, 2.7, -5.757925, 2.3997207, 0.6000001, -4.432925, 2.6997209, 0.6000001, -4.382925, 2.6997209, 0.6000001, -4.882925, 2.2497206, 0.6000001, -4.3329253, 0.79972076, 0.6000001, -5.7329254, 0.54972076, 0.6000001, -4.182925, 2.1997209, 0.6000001, -4.132925, 11.249721, 0.6000001, -5.432925, 10.999721, 0.6000001, -5.782925, 10.899721, 0.6000001, -5.782925, 10.94972, 0.6000001, -5.132925, 10.649721, 0.6000001, -6.082925, 10.44972, 0.6000001, -6.082925, 10.899721, 0.6000001, -4.782925, 9.749721, 0.6000001, -1.9829249, 9.849721, 0.6000001, -1.632925, 10.299721, 0.6000001, -1.7829251, 12.19972, 0.6000001, -2.982925, 12.149721, 0.6000001, -3.232925, 10.499721, 0.6000001, -1.7329249, 12.349721, 0.6000001, -3.482925, 13.249721, 2.65, -4.032925, 13.449721, 2.7, -4.382925, 13.299722, 2.6, -4.532925, 13.349721, 2.6, -4.207925, 13.299722, 2.55, -4.682925, 11.899721, 2.85, -5.132925, 12.249721, 2.7, -5.632925, 13.449721, 2.5, -4.932925, -2.1502795, 0.6000001, -5.682925, -2.3002794, 0.6000001, -6.032925, -2.9002795, 0.6000001, -5.782925, -2.7002792, 0.6000001, -4.8329253, -2.3502793, 0.6000001, -4.8329253, -3.2002795, 0.6000001, -5.832925, -2.9002795, 0.6000001, -4.632925, -3.2002795, 0.6000001, -3.482925, -3.1002793, 0.6000001, -3.5329251, 13.449721, 0.6000001, -4.882925, 12.89972, 0.6000001, -5.782925, 12.64972, 0.6000001, -5.432925, 12.89972, 0.65000004, -4.3329253, 12.349721, 0.65000004, -5.282925, 14.549722, 0.6000001, -5.132925, 15.249721, 0.6000001, -4.532925, 15.249721, 0.6000001, -5.7329254, 14.549722, 0.6000001, -5.532925, -1.0002794, 0.65000004, -5.382925, -1.3502793, 0.65000004, -4.782925, -1.2502794, 0.6000001, -4.682925, -0.30027938, 0.6000001, -4.532925, -0.15027928, 0.6000001, -5.132925, -0.15027928, 0.6000001, -5.282925, 2.7997208, 2.6, -4.932925, 2.7997208, 2.5, -4.132925, 3.5997205, 2.55, -4.132925, 3.5997205, 2.6, -4.932925, 13.349721, 2.55, -3.9329252, 14.049722, 2.8, -3.882925, 13.299722, 2.45, -3.632925, 13.049722, 2.35, -3.5829253, 12.749721, 2.1, -3.132925, 13.549722, 2.25, -2.382925, 13.749721, 2.4, -2.5829253, 14.049722, 2.65, -2.5329251, 14.599721, 2.8, -2.8329253, 14.233054, 2.6, -2.632925, -1.5002794, 2.55, -4.0829253, -1.9002794, 2.4, -4.0829253, -2.0002794, 2.35, -3.9329252, -2.4002795, 2.35, -3.232925, -2.3502793, 2.65, -2.732925, -1.9002794, 2.75, -2.5329251, -1.8002794, 2.75, -2.632925, -2.3002794, 2.45, -3.0329251, -2.3252795, 2.65, -2.882925, -2.1252794, 2.6, -2.632925, -1.3502793, 2.95, -2.632925, -0.7002795, 0.6000001, 0.31707478, -0.6502793, 0.6000001, 0.61707497, -0.20027947, 0.6000001, 0.46707535, -0.85027933, 0.6000001, 0.21707535, -1.5002794, 0.6000001, -0.63292503, -1.2502794, 0.6000001, 0.31707478, -0.40027928, 0.6000001, -1.6829252, -1.3002794, 0.6000001, -1.7829251, 8.999721, 0.6000001, -1.4829254, 2.1997209, 0.6000001, -3.732925, 0.49972057, 0.6000001, -3.882925, 0.29972076, 0.6000001, 1.0170746, 0.24972057, 0.6000001, 1.4170752, -0.20027947, 0.6000001, -1.8329253, 0.14972067, 0.6000001, 0.61707497, 2.2997208, 0.6000001, -3.5829253, 0.14972067, 0.6000001, -3.632925, 9.649721, 0.6000001, 3.7170753, 9.649721, 0.6000001, -0.78292465, 9.399721, 0.6000001, -0.7329254, 9.249721, 0.6000001, -0.83292484, -0.40027928, 0.6000001, 1.6670752, -0.40027928, 0.6000001, 3.7170753, 13.849721, 0.6000001, -2.982925, 13.949721, 0.6000001, -2.982925, 14.299722, 0.6000001, -3.382925, 13.89972, 0.6000001, -4.132925, 13.349721, 0.6000001, -3.5329251, 13.349721, 0.6000001, -3.4329252, -2.0002794, 0.6000001, -3.482925, -2.0002794, 0.6000001, -3.1829252, -1.4002793, 0.6000001, -3.0329251, -1.0002794, 0.6000001, -3.732925, -1.9002794, 0.6000001, -3.9329252, 12.849721, 0.6000001, -1.6829252, 13.14972, 0.6000001, -2.132925, 12.89972, 0.6000001, -1.4329252, 10.649721, 0.6000001, -1.632925, 10.749721, 0.6000001, -1.3329248, 14.099721, 2.65, -2.232925, 13.89972, 2.7, -2.0829253, 13.749721, 2.75, -1.7329249, 14.266387, 2.6, -2.4329252, 14.949721, 2.65, -0.78292465, 15.249721, 2.6, -1.132925, 15.249721, 2.5, -1.8329253, 14.762221, 2.5, -2.5829253, -1.9502794, 2.55, -2.2829251, -2.7002792, 2.7, -2.6829252, -2.0502794, 2.45, -0.9829254, -1.8502795, 2.4, -1.0329247, -1.7002795, 2.5, -2.132925, -3.1002793, 2.7, -2.0329251, -3.2002795, 2.65, -1.1829252, -3.2002795, 2.7, -1.8329253, -2.8502793, 0.65000004, -2.232925, -3.0002794, 0.65000004, -2.1829252, -3.2002795, 0.65000004, -1.8329253, -2.5002794, 0.6000001, -1.9829249, -2.0502794, 0.6000001, -1.6829252, -2.0502794, 0.6000001, -1.9329252, -2.3002794, 0.6000001, -1.1829252, -2.1502795, 0.6000001, -1.1829252, -3.1502795, 0.6000001, -1.3329248, 14.999721, 0.6000001, -2.232925, 14.699721, 0.6000001, -2.0329251, 14.64972, 0.6000001, -1.882925, 14.299722, 0.65000004, -1.7329249, 14.349721, 0.65000004, -1.4829254, 15.249721, 0.6000001, -1.8329253, 14.749721, 0.65000004, -0.88292503, 15.249721, 0.6000001, -1.4329252, 9.899721, 2.55, -0.7329254, 10.69972, 2.6, -0.9329252, 10.499721, 2.6, -1.6829252, 9.69972, 2.5, -1.4829254, 15.799722, 0.6000001, -0.7329254, 15.449721, 0.6000001, -0.7329254, 15.049722, 0.6000001, -0.18292522, 15.449721, 0.6000001, 0.71707535, 15.799722, 0.6000001, 0.71707535, 10.749721, 0.6000001, -0.83292484, 15.249721, 0.6000001, 0.91707516, 14.549722, 0.6000001, -0.032924652, 10.099721, 0.6000001, -0.58292484, 10.099721, 0.6000001, 3.7170753, 15.249721, 0.6000001, 3.7170753, 9.849721, 0.6000001, -0.6829252, 9.799721, 0.6000001, -0.88292503, -1.6502793, 0.6000001, -0.48292542, -1.5002794, 0.6000001, 0.5170746, -2.0502794, 0.6000001, -0.48292542, -3.7502794, 0.6000001, -0.7329254, -3.7502794, 0.6000001, 0.71707535, -3.4002795, 0.6000001, 0.71707535, -3.1502795, 0.6000001, -0.7329254, -1.4502795, 0.6000001, 0.86707497, -3.2002795, 0.6000001, 0.96707535, -0.60027933, 2.55, 1.5170746, 0.19972062, 2.6, 1.3170748, -0.00027942657, 2.6, 0.5670748, -0.8002794, 2.5, 0.7670746, -1.2502794, 0.6000001, 1.4170752, -1.0502794, 0.6000001, 1.5170746, -3.2002795, 0.6000001, 3.7170753, -1.0502794, 0.6000001, 3.7170753, -0.6502793, 0.6000001, 1.5670748, -0.7002795, 0.6000001, 1.367075, -3.2002795, 0.6000001, 4.5170746, -3.2002795, 0.6000001, 12.017076, 15.249721, 0.6000001, 12.017076, 15.249721, 0.6000001, 4.5170746) +polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(4, 3, 2), PackedInt32Array(2, 0, 4), PackedInt32Array(4, 0, 5), PackedInt32Array(0, 6, 5), PackedInt32Array(8, 7, 9), PackedInt32Array(9, 7, 10), PackedInt32Array(12, 11, 10), PackedInt32Array(7, 14, 13), PackedInt32Array(7, 13, 10), PackedInt32Array(10, 13, 12), PackedInt32Array(16, 15, 17), PackedInt32Array(17, 15, 18), PackedInt32Array(18, 15, 19), PackedInt32Array(19, 15, 20), PackedInt32Array(20, 15, 21), PackedInt32Array(21, 15, 22), PackedInt32Array(24, 23, 25), PackedInt32Array(25, 23, 27), PackedInt32Array(25, 27, 26), PackedInt32Array(26, 28, 25), PackedInt32Array(25, 28, 30), PackedInt32Array(25, 30, 29), PackedInt32Array(31, 33, 32), PackedInt32Array(35, 34, 33), PackedInt32Array(33, 31, 35), PackedInt32Array(35, 31, 23), PackedInt32Array(23, 31, 36), PackedInt32Array(23, 36, 27), PackedInt32Array(23, 37, 35), PackedInt32Array(39, 38, 40), PackedInt32Array(40, 38, 41), PackedInt32Array(43, 42, 44), PackedInt32Array(44, 42, 47), PackedInt32Array(44, 47, 45), PackedInt32Array(45, 47, 46), PackedInt32Array(48, 44, 49), PackedInt32Array(49, 44, 50), PackedInt32Array(50, 44, 45), PackedInt32Array(41, 38, 51), PackedInt32Array(51, 38, 49), PackedInt32Array(41, 51, 52), PackedInt32Array(52, 51, 53), PackedInt32Array(53, 51, 54), PackedInt32Array(54, 51, 49), PackedInt32Array(52, 53, 50), PackedInt32Array(50, 53, 54), PackedInt32Array(50, 54, 49), PackedInt32Array(57, 56, 55), PackedInt32Array(58, 57, 55), PackedInt32Array(59, 57, 63), PackedInt32Array(63, 57, 60), PackedInt32Array(60, 57, 58), PackedInt32Array(60, 58, 61), PackedInt32Array(61, 58, 62), PackedInt32Array(66, 65, 64), PackedInt32Array(64, 68, 67), PackedInt32Array(70, 66, 59), PackedInt32Array(59, 66, 69), PackedInt32Array(69, 66, 67), PackedInt32Array(67, 66, 64), PackedInt32Array(60, 71, 63), PackedInt32Array(63, 71, 70), PackedInt32Array(63, 70, 59), PackedInt32Array(16, 17, 72), PackedInt32Array(72, 17, 73), PackedInt32Array(75, 74, 76), PackedInt32Array(76, 74, 77), PackedInt32Array(76, 78, 73), PackedInt32Array(73, 78, 72), PackedInt32Array(72, 78, 77), PackedInt32Array(77, 78, 76), PackedInt32Array(80, 81, 75), PackedInt32Array(75, 81, 79), PackedInt32Array(75, 79, 74), PackedInt32Array(79, 84, 85), PackedInt32Array(85, 84, 82), PackedInt32Array(82, 84, 83), PackedInt32Array(88, 87, 86), PackedInt32Array(83, 91, 89), PackedInt32Array(89, 91, 90), PackedInt32Array(79, 81, 84), PackedInt32Array(84, 81, 80), PackedInt32Array(84, 80, 88), PackedInt32Array(84, 88, 86), PackedInt32Array(84, 86, 83), PackedInt32Array(83, 86, 91), PackedInt32Array(91, 86, 92), PackedInt32Array(91, 92, 90), PackedInt32Array(95, 94, 93), PackedInt32Array(97, 96, 98), PackedInt32Array(98, 96, 99), PackedInt32Array(101, 100, 102), PackedInt32Array(102, 100, 103), PackedInt32Array(105, 104, 106), PackedInt32Array(106, 104, 107), PackedInt32Array(110, 109, 108), PackedInt32Array(110, 108, 111), PackedInt32Array(111, 108, 112), PackedInt32Array(112, 108, 113), PackedInt32Array(114, 116, 115), PackedInt32Array(120, 119, 117), PackedInt32Array(117, 119, 118), PackedInt32Array(123, 122, 121), PackedInt32Array(121, 124, 123), PackedInt32Array(123, 124, 125), PackedInt32Array(126, 128, 127), PackedInt32Array(130, 131, 125), PackedInt32Array(125, 131, 129), PackedInt32Array(125, 129, 132), PackedInt32Array(111, 112, 128), PackedInt32Array(126, 125, 128), PackedInt32Array(128, 125, 111), PackedInt32Array(111, 125, 124), PackedInt32Array(134, 133, 132), PackedInt32Array(132, 133, 125), PackedInt32Array(125, 133, 123), PackedInt32Array(123, 133, 135), PackedInt32Array(132, 136, 134), PackedInt32Array(139, 138, 137), PackedInt32Array(141, 140, 142), PackedInt32Array(142, 140, 144), PackedInt32Array(142, 144, 143), PackedInt32Array(146, 149, 150), PackedInt32Array(150, 149, 143), PackedInt32Array(143, 149, 145), PackedInt32Array(143, 145, 148), PackedInt32Array(143, 148, 147), PackedInt32Array(143, 147, 142), PackedInt32Array(153, 152, 151), PackedInt32Array(151, 154, 155), PackedInt32Array(155, 154, 147), PackedInt32Array(155, 147, 148), PackedInt32Array(151, 155, 153), PackedInt32Array(153, 155, 148), PackedInt32Array(158, 157, 156), PackedInt32Array(156, 159, 158), PackedInt32Array(158, 159, 108), PackedInt32Array(108, 159, 160), PackedInt32Array(160, 159, 161), PackedInt32Array(108, 109, 158), PackedInt32Array(159, 162, 161), PackedInt32Array(164, 163, 165), PackedInt32Array(165, 163, 166), PackedInt32Array(167, 165, 168), PackedInt32Array(168, 165, 166), PackedInt32Array(168, 166, 169), PackedInt32Array(168, 169, 136), PackedInt32Array(172, 171, 170), PackedInt32Array(174, 173, 169), PackedInt32Array(169, 173, 170), PackedInt32Array(169, 170, 134), PackedInt32Array(169, 134, 136), PackedInt32Array(172, 170, 175), PackedInt32Array(175, 170, 173), PackedInt32Array(169, 176, 174), PackedInt32Array(178, 180, 179), PackedInt32Array(179, 180, 177), PackedInt32Array(179, 177, 181), PackedInt32Array(181, 177, 182), PackedInt32Array(183, 89, 90), PackedInt32Array(183, 90, 182), PackedInt32Array(182, 90, 184), PackedInt32Array(182, 184, 181), PackedInt32Array(186, 185, 187), PackedInt32Array(187, 185, 189), PackedInt32Array(187, 189, 188), PackedInt32Array(187, 188, 190), PackedInt32Array(190, 188, 191), PackedInt32Array(193, 192, 191), PackedInt32Array(191, 192, 190), PackedInt32Array(196, 195, 194), PackedInt32Array(196, 194, 198), PackedInt32Array(198, 194, 197), PackedInt32Array(202, 201, 199), PackedInt32Array(199, 201, 200), PackedInt32Array(207, 206, 208), PackedInt32Array(208, 206, 203), PackedInt32Array(203, 206, 205), PackedInt32Array(203, 205, 204), PackedInt32Array(212, 211, 209), PackedInt32Array(209, 211, 210), PackedInt32Array(177, 180, 213), PackedInt32Array(213, 180, 178), PackedInt32Array(213, 178, 215), PackedInt32Array(215, 178, 214), PackedInt32Array(216, 215, 217), PackedInt32Array(219, 218, 217), PackedInt32Array(220, 219, 222), PackedInt32Array(222, 219, 221), PackedInt32Array(221, 219, 214), PackedInt32Array(214, 219, 215), PackedInt32Array(215, 219, 217), PackedInt32Array(145, 149, 223), PackedInt32Array(223, 149, 146), PackedInt32Array(224, 223, 225), PackedInt32Array(225, 223, 226), PackedInt32Array(228, 232, 229), PackedInt32Array(229, 232, 227), PackedInt32Array(229, 227, 231), PackedInt32Array(229, 231, 230), PackedInt32Array(230, 226, 229), PackedInt32Array(229, 226, 233), PackedInt32Array(233, 226, 223), PackedInt32Array(233, 223, 146), PackedInt32Array(236, 235, 234), PackedInt32Array(234, 237, 236), PackedInt32Array(236, 237, 238), PackedInt32Array(237, 239, 238), PackedInt32Array(238, 241, 240), PackedInt32Array(242, 135, 133), PackedInt32Array(161, 162, 244), PackedInt32Array(244, 162, 243), PackedInt32Array(246, 245, 135), PackedInt32Array(240, 247, 238), PackedInt32Array(238, 247, 236), PackedInt32Array(236, 247, 248), PackedInt32Array(243, 249, 244), PackedInt32Array(244, 249, 250), PackedInt32Array(250, 249, 247), PackedInt32Array(251, 253, 252), PackedInt32Array(254, 253, 251), PackedInt32Array(256, 255, 246), PackedInt32Array(254, 251, 242), PackedInt32Array(242, 251, 135), PackedInt32Array(135, 251, 246), PackedInt32Array(246, 251, 256), PackedInt32Array(248, 247, 245), PackedInt32Array(245, 247, 249), PackedInt32Array(245, 249, 135), PackedInt32Array(258, 257, 259), PackedInt32Array(259, 257, 262), PackedInt32Array(259, 262, 261), PackedInt32Array(259, 261, 260), PackedInt32Array(263, 267, 264), PackedInt32Array(264, 267, 265), PackedInt32Array(265, 267, 266), PackedInt32Array(173, 269, 268), PackedInt32Array(268, 270, 173), PackedInt32Array(173, 270, 271), PackedInt32Array(271, 270, 272), PackedInt32Array(173, 271, 175), PackedInt32Array(275, 274, 273), PackedInt32Array(273, 220, 276), PackedInt32Array(276, 220, 222), PackedInt32Array(276, 222, 221), PackedInt32Array(221, 280, 276), PackedInt32Array(276, 280, 273), PackedInt32Array(273, 280, 275), PackedInt32Array(275, 280, 279), PackedInt32Array(275, 279, 278), PackedInt32Array(275, 278, 277), PackedInt32Array(228, 281, 232), PackedInt32Array(232, 281, 227), PackedInt32Array(227, 281, 282), PackedInt32Array(284, 283, 285), PackedInt32Array(285, 283, 287), PackedInt32Array(285, 287, 286), PackedInt32Array(285, 286, 282), PackedInt32Array(287, 288, 286), PackedInt32Array(282, 281, 285), PackedInt32Array(290, 289, 291), PackedInt32Array(291, 289, 292), PackedInt32Array(292, 294, 293), PackedInt32Array(296, 295, 293), PackedInt32Array(293, 295, 292), PackedInt32Array(292, 295, 297), PackedInt32Array(292, 297, 291), PackedInt32Array(300, 299, 298), PackedInt32Array(302, 301, 300), PackedInt32Array(298, 303, 300), PackedInt32Array(300, 303, 305), PackedInt32Array(300, 305, 302), PackedInt32Array(302, 305, 304), PackedInt32Array(307, 306, 308), PackedInt32Array(308, 306, 309), PackedInt32Array(311, 310, 312), PackedInt32Array(312, 310, 313), PackedInt32Array(313, 310, 314), PackedInt32Array(315, 272, 270), PackedInt32Array(317, 316, 270), PackedInt32Array(270, 316, 318), PackedInt32Array(318, 316, 320), PackedInt32Array(318, 320, 319), PackedInt32Array(313, 316, 312), PackedInt32Array(312, 316, 317), PackedInt32Array(318, 315, 270), PackedInt32Array(322, 321, 252), PackedInt32Array(252, 321, 251), PackedInt32Array(318, 319, 321), PackedInt32Array(321, 319, 251), PackedInt32Array(323, 238, 239), PackedInt32Array(239, 324, 323), PackedInt32Array(323, 324, 325), PackedInt32Array(327, 326, 328), PackedInt32Array(328, 326, 329), PackedInt32Array(324, 330, 325), PackedInt32Array(325, 330, 329), PackedInt32Array(329, 330, 328), PackedInt32Array(328, 330, 331), PackedInt32Array(335, 334, 332), PackedInt32Array(332, 334, 333), PackedInt32Array(336, 331, 330), PackedInt32Array(336, 337, 331), PackedInt32Array(331, 337, 339), PackedInt32Array(331, 339, 338), PackedInt32Array(337, 341, 340), PackedInt32Array(340, 255, 337), PackedInt32Array(337, 255, 256), PackedInt32Array(337, 256, 339), PackedInt32Array(345, 344, 342), PackedInt32Array(342, 344, 343)] geometry_source_geometry_mode = 1 cell_size = 0.05 cell_height = 0.05 @@ -20,40 +36,369 @@ agent_radius = 0.25 [node name="Item3" type="Node3D" unique_id=1898621031] -[node name="Geometry" type="Node3D" parent="." unique_id=1828031604 groups=["navigation_mesh_source_group"]] +[node name="CameraZones" type="Node3D" parent="." unique_id=1165742227] -[node name="CSGBox3D25" type="CSGBox3D" parent="Geometry" unique_id=93057530] +[node name="CameraZone" type="Area3D" parent="CameraZones" unique_id=71671734] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CameraZones/CameraZone" unique_id=610271491] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 2.75, -5.75) +shape = SubResource("BoxShape3D_ntn1o") + +[node name="Offset" type="Node3D" parent="CameraZones/CameraZone" unique_id=1028960179] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0) + +[node name="Camera" type="Sprite3D" parent="CameraZones/CameraZone/Offset" unique_id=1529595699] +transform = Transform3D(0.99999994, 0, 0, 0, 0.7071067, 0.70710677, 0, -0.7071067, 0.70710677, 0, 4.5, 6) +pixel_size = 0.05 +double_sided = false +texture = ExtResource("1_aax4s") +script = ExtResource("2_pvnjl") +max_distance_x = Vector2(-6, 6) + +[node name="Map" type="Node3D" parent="." unique_id=1108576076 groups=["navigation_mesh_source_group"]] + +[node name="Geometry" type="Node3D" parent="Map" unique_id=1828031604] + +[node name="CSGBox3D9" type="CSGBox3D" parent="Map/Geometry" unique_id=1396107344] +transform = Transform3D(0.34202015, 2.1849495e-08, -0.93969285, -0.0007380545, 0.9999997, -0.00026863813, 0.9396924, 0.0007854104, 0.34202006, 3.3274856, 1.6066083, -7.9569483) layers = 1023 use_collision = true collision_layer = 255 collision_mask = 255 -size = Vector3(8, 1, 8) +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D7" type="CSGBox3D" parent="Map/Geometry" unique_id=1874652609] +transform = Transform3D(-0.34202003, -2.8096418e-08, 0.9396926, 0.24321027, 0.96592575, 0.08852128, -0.90767354, 0.2588191, -0.33036596, 1.4186676, 1.5077593, -7.470636) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D8" type="CSGBox3D" parent="Map/Geometry" unique_id=2003918353] +transform = Transform3D(-0.3420201, -5.2784294e-08, 0.93969274, 0.16317585, 0.9848078, 0.059391156, -0.9254168, 0.17364827, -0.33682403, -2.4201593, 1.5077593, -7.4706364) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D16" type="CSGBox3D" parent="Map/Geometry" unique_id=80926141] +transform = Transform3D(0.90856135, -0.3659982, -0.20139965, 0.3971313, 0.9063078, 0.14454396, 0.12962717, -0.21130912, 0.9687857, -1.5389622, 1.5077593, -3.245469) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D17" type="CSGBox3D" parent="Map/Geometry" unique_id=655291519] +transform = Transform3D(0.90856135, -0.3659982, -0.20139965, 0.3971313, 0.9063078, 0.14454396, 0.12962717, -0.21130912, 0.9687857, -0.6588037, 1.5077593, -6.7734823) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D18" type="CSGBox3D" parent="Map/Geometry" unique_id=1146374046] +transform = Transform3D(-0.9570784, 0.22414392, 0.18374091, 0.2432103, 0.9659259, 0.088521294, -0.15763867, 0.12940957, -0.9789808, -0.7299399, 1.5077593, -5.278284) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D19" type="CSGBox3D" parent="Map/Geometry" unique_id=1678855447] +transform = Transform3D(-0.9724445, 0.15038377, 0.17814818, 0.16317582, 0.98480767, 0.05939114, -0.16651028, 0.08682418, -0.9822098, -2.6493535, 1.5077593, -1.9537625) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D20" type="CSGBox3D" parent="Map/Geometry" unique_id=2093031186] +transform = Transform3D(0.5665411, -0.36599815, 0.7382933, 0.39713135, 0.9063079, 0.14454393, -0.7220235, 0.21130916, 0.65880996, 14.102271, 1.5077593, -3.403356) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D21" type="CSGBox3D" parent="Map/Geometry" unique_id=2026322071] +transform = Transform3D(0.5665411, -0.36599815, 0.7382933, 0.39713135, 0.9063079, 0.14454393, -0.7220235, 0.21130916, 0.65880996, 12.0653715, 1.5077593, -6.9313693) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D22" type="CSGBox3D" parent="Map/Geometry" unique_id=424396375] +transform = Transform3D(-0.6150582, 0.22414392, -0.7559517, 0.24321029, 0.9659259, 0.088521294, 0.7500348, -0.12940952, -0.64861465, 12.746313, 1.5077593, -5.1203976) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D23" type="CSGBox3D" parent="Map/Geometry" unique_id=264273922] +transform = Transform3D(-0.6304244, 0.15038383, -0.7615445, 0.16317582, 0.98480767, 0.059391152, 0.7589064, -0.08682406, -0.6453857, 14.665727, 1.5077593, -1.795876) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D14" type="CSGBox3D" parent="Map/Geometry" unique_id=486000335] +transform = Transform3D(0.34202012, 2.1849493e-08, -0.93969274, 0.39713123, 0.9063077, 0.14454393, 0.8516507, -0.42261824, 0.3099755, 14.448769, 1.5077593, -7.1548624) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D15" type="CSGBox3D" parent="Map/Geometry" unique_id=641013883] +transform = Transform3D(-0.3420201, -5.2784294e-08, 0.93969274, 0.16317585, 0.9848078, 0.059391156, -0.9254168, 0.17364827, -0.33682403, 13.072317, 1.5077593, -7.4706364) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D10" type="CSGBox3D" parent="Map/Geometry" unique_id=1872613402] +transform = Transform3D(-0.3420202, -1.1913105e-08, 0.93969285, 0.3971313, 0.9063078, 0.14454396, -0.8516508, 0.4226183, -0.30997565, 9.6610775, 1.5077593, -7.4706364) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D11" type="CSGBox3D" parent="Map/Geometry" unique_id=1413879073] +transform = Transform3D(-0.34202018, 1.5919348e-09, 0.9396928, 0.7203205, 0.64218575, 0.2621753, -0.6034572, 0.7665491, -0.21964057, 5.413432, 1.5257468, -8.343278) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D12" type="CSGBox3D" parent="Map/Geometry" unique_id=1987222147] +transform = Transform3D(0.34202015, 4.9530264e-09, -0.93969256, -0.16390286, 0.9846713, -0.05965575, 0.9252883, 0.17442158, 0.33677727, 7.5301876, 1.6066085, -7.9569488) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(2, 2, 2) +material = ExtResource("1_blq83") + +[node name="CSGBox3D25" type="CSGBox3D" parent="Map/Geometry" unique_id=93057530] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, -2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 1, 13) material = ExtResource("1_hue54") -[node name="Label3D" type="Label3D" parent="Geometry" unique_id=1011547739] +[node name="CSGBox3D38" type="CSGBox3D" parent="Map/Geometry" unique_id=1392195201] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 1, 8.25) +material = ExtResource("5_77bgq") + +[node name="CSGBox3D41" type="CSGBox3D" parent="Map/Geometry" unique_id=295061004] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, 4.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 12, 0.25) +material = ExtResource("6_ntn1o") + +[node name="CSGBox3D39" type="CSGBox3D" parent="Map/Geometry" unique_id=1297314690] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.875, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 11.25, 8.25) +material = ExtResource("5_77bgq") + +[node name="CSGBox3D40" type="CSGBox3D" parent="Map/Geometry" unique_id=1610157321] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.875, 8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 11.25, 8.25) +material = ExtResource("5_77bgq") + +[node name="CSGBox3D26" type="CSGBox3D" parent="Map/Geometry" unique_id=28272581] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, -8.875) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 12, 0.25) +material = ExtResource("2_rctha") + +[node name="CSGBox3D31" type="CSGBox3D" parent="Map/Geometry" unique_id=919442575] +transform = Transform3D(1, 0, 0, 0, 0.8660254, 0.5, 0, -0.5, 0.8660254, 5.9997206, 1.6388907, -8.1316805) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 4.25, 0.25) +material = ExtResource("1_blq83") + +[node name="CSGBox3D33" type="CSGBox3D" parent="Map/Geometry" unique_id=2014609465] +transform = Transform3D(1, 0, 0, 0, 0.8660254, -0.5, 0, 0.5, 0.8660254, 6, 9.625, -8.125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 4.25, 0.25) +material = ExtResource("1_blq83") + +[node name="CSGBox3D32" type="CSGBox3D" parent="Map/Geometry" unique_id=1092185935] +transform = Transform3D(1, 0, 0, 0, 0.5, 0.86602545, 0, -0.86602545, 0.5, 6, 0.875, -7.375) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(20, 4.25, 0.25) +material = ExtResource("1_blq83") + +[node name="CSGBox3D27" type="CSGBox3D" parent="Map/Geometry" unique_id=1749746785] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.5, -4.875) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 7.75) +material = ExtResource("2_rctha") + +[node name="CSGBox3D36" type="CSGBox3D" parent="Map/Geometry" unique_id=1576072927] +transform = Transform3D(0.8660254, 0, -0.5, 0, 1, 0, 0.5, 0, 0.8660254, -1.6082531, 5.5, -5.3705125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.25, 12, 8.75) +material = ExtResource("2_rctha") + +[node name="CSGBox3D37" type="CSGBox3D" parent="Map/Geometry" unique_id=1393912842] +transform = Transform3D(0.8660254, 0, 0.5, 0, 1, 0, -0.5, 0, 0.8660254, 13.6417465, 5.5, -5.3705125) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.25, 12, 8.75) +material = ExtResource("2_rctha") + +[node name="CSGBox3D28" type="CSGBox3D" parent="Map/Geometry" unique_id=917029850] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.5, -4.875) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 7.75) +material = ExtResource("2_rctha") + +[node name="CSGBox3D29" type="CSGBox3D" parent="Map/Geometry" unique_id=407694411] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 5.5, 2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 3) +material = ExtResource("2_rctha") + +[node name="CSGBox3D30" type="CSGBox3D" parent="Map/Geometry" unique_id=1193225118] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 5.5, 2.5) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 12, 3) +material = ExtResource("2_rctha") + +[node name="CSGBox3D34" type="CSGBox3D" parent="Map/Geometry" unique_id=585079441] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.75, 7, 0) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 9, 2) +material = ExtResource("2_rctha") + +[node name="CSGBox3D35" type="CSGBox3D" parent="Map/Geometry" unique_id=305783878] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.75, 7, 0) +layers = 1023 +use_collision = true +collision_layer = 255 +collision_mask = 255 +size = Vector3(0.5, 9, 2) +material = ExtResource("2_rctha") + +[node name="Label3D" type="Label3D" parent="Map/Geometry" unique_id=1011547739] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0) billboard = 1 text = "3" +[node name="Props" type="Node3D" parent="Map" unique_id=536157616] + +[node name="blockbench_export" parent="Map/Props" unique_id=1509742770 instance=ExtResource("4_uwpk4")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.2327318, 0.4921612, -4.548477) + +[node name="blockbench_export2" parent="Map/Props" unique_id=958201971 instance=ExtResource("5_t7tcn")] +transform = Transform3D(0.34202015, 0, -0.9396926, 0, 1, 0, 0.9396926, 0, 0.34202015, -0.2643292, 0.49367946, 1.0695834) + +[node name="blockbench_export3" parent="Map/Props" unique_id=274342244 instance=ExtResource("5_t7tcn")] +transform = Transform3D(0.34202015, 0, -0.9396926, 0, 1, 0, 0.9396926, 0, 0.34202015, 10.235671, 0.49367946, -1.1804166) + [node name="Spawns" type="Node3D" parent="." unique_id=1153235281] [node name="Spawn" parent="Spawns" unique_id=2054091961 instance=ExtResource("2_pn80y")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.5, 3, 0.75) [node name="ProceduralStart" parent="." unique_id=1915860137 instance=ExtResource("2_0r4hg")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0.5, 0) [node name="ProceduralEnd" parent="." unique_id=1312865697 instance=ExtResource("3_pn80y")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0.5, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 0.5, 0) [node name="AggroZone" parent="." unique_id=744621063 instance=ExtResource("4_0r4hg")] [node name="CollisionShape3D" type="CollisionShape3D" parent="AggroZone" unique_id=687211074] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0) -shape = SubResource("BoxShape3D_pn80y") +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, -2) +shape = SubResource("BoxShape3D_itmm1") debug_color = Color(0.98925954, 0, 0.29793912, 0.41960785) -[node name="NavigationLink3D" type="NavigationLink3D" parent="." unique_id=553468132] +[node name="RoomCollision" parent="." unique_id=687611902 instance=ExtResource("14_pvnjl")] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="RoomCollision" unique_id=827616244] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 5.5, 1.625) +shape = SubResource("BoxShape3D_uh1gl") +debug_color = Color(1.4439226e-07, 0.6509632, 0.0114972815, 0.41960785) [node name="Navmesh" type="NavigationRegion3D" parent="." unique_id=775691988] navigation_mesh = SubResource("NavigationMesh_pn80y") + +[node name="WorldEnvironment" parent="." unique_id=972144381 instance=ExtResource("10_aax4s")] diff --git a/scenes/world_environments/caves1.tscn b/scenes/world_environments/caves1.tscn new file mode 100644 index 0000000..91041c9 --- /dev/null +++ b/scenes/world_environments/caves1.tscn @@ -0,0 +1,13 @@ +[gd_scene format=3 uid="uid://djvj11avwyffr"] + +[sub_resource type="Environment" id="Environment_uwrxv"] +background_mode = 1 +background_color = Color(0.38, 0.152, 0.37240002, 1) +tonemap_mode = 2 +volumetric_fog_enabled = true +adjustment_enabled = true +adjustment_brightness = 1.25 +adjustment_contrast = 1.1 + +[node name="WorldEnvironment" type="WorldEnvironment" unique_id=972144381] +environment = SubResource("Environment_uwrxv") diff --git a/scripts/game.gd b/scripts/game.gd index 0436822..52fc655 100644 --- a/scripts/game.gd +++ b/scripts/game.gd @@ -6,19 +6,27 @@ var update_timer = 0.1 var procgen_map = [] func _procgen_add_next() -> void: - var procgen_item = load("res://scenes/procgens/test1/item_" + str(randi_range(3, 3)) + ".tscn").instantiate() + var procgen_item = load("res://scenes/procgens/test1/item_" + str(randi_range(2, 3)) + ".tscn").instantiate() var entry = { "item": procgen_item, "enemies": [] } - - if procgen_map.size() != 0: - procgen_item.global_position = procgen_map[procgen_map.size() - 1].item.get_node("ProceduralEnd").global_position - procgen_item.get_node("ProceduralStart").position - - procgen_map.push_back(entry) + procgen_item.rotation.y = 0.7 add_child(procgen_item) + + if procgen_map.size() != 0: + var last_end = procgen_map[procgen_map.size() - 1].item.get_node("ProceduralEnd") + + procgen_item.rotation = last_end.global_rotation + + var start_offset = procgen_item.get_node("ProceduralStart").global_position - procgen_item.global_position + + procgen_item.global_position = last_end.global_position - start_offset + + procgen_map.push_back(entry) + entry.has_aggro_zone = procgen_item.has_node("AggroZone") if entry.has_aggro_zone: procgen_item.get_node("AggroZone").body_entered.connect(func (body): if body == player: for n in entry.enemies: n.awake = true ) @@ -35,15 +43,24 @@ func _procgen_add_next() -> void: entry.enemies.push_back(enemy) - + + if procgen_item.has_node("CameraZones"): + for n in procgen_item.get_node("CameraZones").get_children(): + var pos = n.global_position + var rot = n.global_rotation + procgen_item.get_node("CameraZones").remove_child(n) + $CameraZones.add_child(n) + + n.global_position = pos + n.global_rotation = rot func _ready() -> void: _procgen_add_next() _procgen_add_next() - _procgen_add_next() - _procgen_add_next() - _procgen_add_next() - _procgen_add_next() + #_procgen_add_next() + #_procgen_add_next() + #_procgen_add_next() + #_procgen_add_next() # Called every frame. 'delta' is the elapsed time since the previous frame. diff --git a/scripts/marker/camera_zone_marker.gd b/scripts/marker/camera_zone_marker.gd new file mode 100644 index 0000000..e27dea5 --- /dev/null +++ b/scripts/marker/camera_zone_marker.gd @@ -0,0 +1,25 @@ +@tool +extends Sprite3D + +@export var max_distance_x = Vector2(-INF, INF) + +func _process(delta: float) -> void: + var max_left = max_distance_x.x + var max_right = max_distance_x.y + + var x_a = global_position + x_a += global_transform.basis * Vector3(max_left, 0, 0) + + var x_b = global_position + x_b += global_transform.basis * Vector3(max_right, 0, 0) + + if !((max_distance_x.x == -INF) and (max_distance_x.y == INF)): + if (max_distance_x.x == -INF): + x_a = global_position + elif (max_distance_x.y == INF): + x_b = global_position + + DebugDraw3D.draw_line(x_a, x_b, Color(1, 0, 0)) + + visible = true + diff --git a/scripts/marker/camera_zone_marker.gd.uid b/scripts/marker/camera_zone_marker.gd.uid new file mode 100644 index 0000000..b55afd0 --- /dev/null +++ b/scripts/marker/camera_zone_marker.gd.uid @@ -0,0 +1 @@ +uid://bkfcwdvdolucv diff --git a/scripts/player.gd b/scripts/player.gd index 9bf19f0..9d45f08 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -42,10 +42,15 @@ enum { STATE_DODGING, STATE_ATTACK, STATE_HIT, - STATE_DEATH + STATE_DEATH, + STATE_MOVE_TO_POINT } var state = STATE_NORMAL +var point_to_move_to = null + +var last_basis +var direction_comfort_timer = 0 @onready var game = get_parent() @onready var camera = game.get_node("PlayerCamera") @@ -149,13 +154,28 @@ func _process(delta: float) -> void: $DreamerBody/Animator.set("parameters/layering/blend_amount", 0.0) var input_dir := Input.get_vector("move_left", "move_right", "move_up", "move_down") + + var direction = (camera.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() + + if !last_basis: + last_basis = camera.transform.basis + + if camera.transform.basis != last_basis: + direction_comfort_timer += delta + + direction = (last_basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() + + if direction_comfort_timer > 0.4: + last_basis = camera.transform.basis + else: direction_comfort_timer = 0 + if not combatable: if input_dir.x > 0: face_left = false if input_dir.x < 0: face_left = true - var direction = (camera.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() + var mouse_point_angle if input_icon.using_gamepad: diff --git a/scripts/player_camera.gd b/scripts/player_camera.gd index f6ea8f4..393c020 100644 --- a/scripts/player_camera.gd +++ b/scripts/player_camera.gd @@ -4,6 +4,7 @@ extends Camera3D @onready var camera_zones = game.get_node("CameraZones") @onready var player = game.get_node("Player") @onready var offset = position - player.position +var camera_point = null func _ready() -> void: pass @@ -13,7 +14,27 @@ func _process(delta: float) -> void: global_position = lerp(global_position, goal_position, min(delta * 4, 1.0)) + + + if camera_point: + var origin = camera_point.global_transform.origin + var offset_from_camera_point = to_local(origin) + + #print(offset_from_camera_point) + + if (camera_point.max_distance_x.x != -INF) and (offset_from_camera_point.x < camera_point.max_distance_x.x): + var distance = offset_from_camera_point.x - camera_point.max_distance_x.x + + global_position += camera_point.global_transform.basis * Vector3(distance, 0, 0) + + if (camera_point.max_distance_x.y != INF) and (offset_from_camera_point.x > camera_point.max_distance_x.y): + var distance = offset_from_camera_point.x - camera_point.max_distance_x.y + + global_position += camera_point.global_transform.basis * Vector3(distance, 0, 0) + for n in camera_zones.get_children(): if player in n.get_overlapping_bodies(): - offset = n.get_node("Offset/Camera").position - rotation = n.get_node("Offset/Camera").rotation + offset = n.get_node("Offset/Camera").global_position - n.get_node("Offset").global_position + n.get_node("Offset/Camera").look_at(n.get_node("Offset").global_position) + rotation = n.get_node("Offset/Camera").global_rotation + camera_point = n.get_node("Offset/Camera")