Changed elevator to be child of path

This commit is contained in:
Marco 2025-03-11 16:17:29 +01:00
commit 9bbc631dd3
11 changed files with 117 additions and 116 deletions

View file

@ -42,13 +42,14 @@
[ext_resource type="PackedScene" uid="uid://cnhgvn2salyxl" path="res://Scenes/Items/Icicle_Repeater.tscn" id="32_luw81"]
[ext_resource type="PackedScene" uid="uid://bjb1xv0ny1qim" path="res://Scenes/Props/Chair.tscn" id="33_7ft0s"]
[ext_resource type="Script" uid="uid://bgertv72tq1dt" path="res://Scripts/Components/FSM/NewPlayerStateMachine.cs" id="34_2vu2h"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="35_16ubp"]
[ext_resource type="Script" uid="uid://btwuahxvreivs" path="res://Scripts/Components/FSM/Player/NewInit.cs" id="35_mpb62"]
[ext_resource type="Script" uid="uid://dl50bcl8dx3k8" path="res://Scripts/Components/FSM/TestModule.cs" id="36_4rfvg"]
[sub_resource type="Resource" id="Resource_6wo78"]
script = ExtResource("4_u1i8n")
EggIndex = 0
StartingEquipment = Array[ExtResource("5_u1i8n")]([])
StartingEquipment = []
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rff8l"]
size = Vector2(30, 52.5)
@ -62,15 +63,12 @@ colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4gtx8"]
gradient = SubResource("Gradient_2vu2h")
[sub_resource type="Curve2D" id="Curve2D_pgobb"]
[sub_resource type="Curve2D" id="Curve2D_16ubp"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 0, -80, 0, 0, 0, 0, 0, 0)
}
point_count = 2
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7ft0s"]
size = Vector2(32, 32)
[sub_resource type="Resource" id="Resource_pgobb"]
script = ExtResource("29_3ll5g")
RelativeTargetPosition = Vector2(0, -96)
@ -90,7 +88,7 @@ PlayerTemplate = ExtResource("8_c3v4x")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("PlayerStartPosition")
})
StartingEquipment = [ExtResource("3_6314l"), ExtResource("4_yyg8m")]
StartingEquipment = Array[ExtResource("5_u1i8n")]([ExtResource("3_6314l"), ExtResource("4_yyg8m")])
MapStartData = SubResource("Resource_6wo78")
[node name="Tilemaps" type="Node2D" parent="."]
@ -201,7 +199,7 @@ position = Vector2(59, 386)
[node name="Chest" parent="Tilemaps/Actors" instance=ExtResource("18_v2gcl")]
position = Vector2(56, 320)
LootTable = Array[ExtResource("5_u1i8n")]([ExtResource("19_1ajuh"), ExtResource("20_rff8l"), ExtResource("21_cub4j"), ExtResource("22_4gtx8"), ExtResource("3_6314l"), ExtResource("23_1ajuh"), ExtResource("23_1ajuh"), ExtResource("23_1ajuh")])
LootTable = [ExtResource("19_1ajuh"), ExtResource("20_rff8l"), ExtResource("21_cub4j"), ExtResource("22_4gtx8"), ExtResource("3_6314l"), ExtResource("23_1ajuh"), ExtResource("23_1ajuh"), ExtResource("23_1ajuh")]
[node name="Turret360" parent="Tilemaps/Actors" instance=ExtResource("24_rff8l")]
position = Vector2(374, 503)
@ -230,26 +228,15 @@ position = Vector2(342, 193)
[node name="ElevatorControlPadBottom" parent="Tilemaps/Actors" node_paths=PackedStringArray("Targets") instance=ExtResource("20_0knpf")]
position = Vector2(228, 144)
Targets = [NodePath("../ElevatorPath/Elevator")]
Targets = [NodePath("../Elevator")]
[node name="ElevatorControlPadBottom2" parent="Tilemaps/Actors" node_paths=PackedStringArray("Targets") instance=ExtResource("20_0knpf")]
position = Vector2(232, 53)
Targets = [NodePath("../ElevatorPath/Elevator")]
Targets = [NodePath("../Elevator")]
[node name="ElevatorPath" type="Path2D" parent="Tilemaps/Actors"]
[node name="Elevator" parent="Tilemaps/Actors" instance=ExtResource("28_3ll5g")]
position = Vector2(255, 144)
curve = SubResource("Curve2D_pgobb")
metadata/_edit_group_ = true
[node name="Elevator" parent="Tilemaps/Actors/ElevatorPath" node_paths=PackedStringArray("ElevatorPath", "TopBody") instance=ExtResource("28_3ll5g")]
ElevatorPath = NodePath("..")
TopBody = NodePath("../StaticBody2D/CollisionShape2D")
[node name="StaticBody2D" type="StaticBody2D" parent="Tilemaps/Actors/ElevatorPath"]
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tilemaps/Actors/ElevatorPath/StaticBody2D"]
shape = SubResource("RectangleShape2D_7ft0s")
curve = SubResource("Curve2D_16ubp")
[node name="YinYangGun" parent="Tilemaps/Actors" instance=ExtResource("30_bea3m")]
position = Vector2(364, 195)
@ -268,7 +255,7 @@ position = Vector2(260, 194)
[node name="ScriptableAreaTrigger" parent="Tilemaps" instance=ExtResource("28_fuxq3")]
position = Vector2(230, 250)
Events = [SubResource("Resource_pgobb")]
Events = Array[ExtResource("35_16ubp")]([SubResource("Resource_pgobb")])
[node name="CameraController" type="Camera2D" parent="."]
process_mode = 1