[gd_scene load_steps=37 format=4 uid="uid://c6and5mqr3wv1"]

[ext_resource type="Script" uid="uid://5e157vdk6175" path="res://addons/reedscene/scene/ReedScene.gd" id="1_of2em"]
[ext_resource type="Script" uid="uid://bh066o84byplh" path="res://addons/reedscene/scene/ReedSceneID.gd" id="2_61x7c"]
[ext_resource type="Script" uid="uid://bna42bay8yt1m" path="res://_game/scenes/scripts/s_l1_s2.gd" id="3_61x7c"]
[ext_resource type="Script" uid="uid://dsgl7lbyjsiif" path="res://addons/reedscene/act/ActManager.gd" id="4_0kem1"]
[ext_resource type="Script" uid="uid://fxpk2ot6otfh" path="res://addons/reedscene/act/Act.gd" id="5_0kem1"]
[ext_resource type="Script" uid="uid://pxjf5vst08eo" path="res://addons/reedscene/prop/PropManager.gd" id="5_d8y7x"]
[ext_resource type="Script" uid="uid://baqgorvlumyju" path="res://addons/reedscene/act/SingleAct.gd" id="6_d8y7x"]
[ext_resource type="PackedScene" uid="uid://b5nx4dntm0gyn" path="res://_props/door_manager/event_trigger_door.tscn" id="6_jhhb1"]
[ext_resource type="Script" uid="uid://b4menkyub4ce7" path="res://addons/reedscene/prop/PropComponent.gd" id="7_5navl"]
[ext_resource type="Script" uid="uid://di41kt2tj34c2" path="res://addons/reedscene/prop/StateManager.gd" id="8_tr4o2"]
[ext_resource type="Script" uid="uid://7lml6d1t5xtq" path="res://addons/reedscene/prop/PropState.gd" id="9_meuxg"]
[ext_resource type="PackedScene" uid="uid://1l06de041i40" path="res://_levels/l_level_1.tscn" id="10_xs4uh"]
[ext_resource type="PackedScene" uid="uid://c3mievyfhx6ni" path="res://_props/coin/coin.tscn" id="11_61x7c"]
[ext_resource type="Script" uid="uid://cdvgq0xqdbagk" path="res://addons/reedscene/prop/Effect/ReedPropEffect.gd" id="12_jhhb1"]
[ext_resource type="Script" uid="uid://jeybblac0kg2" path="res://addons/reedscene/prop/ReedTransition.gd" id="13_5navl"]
[ext_resource type="PackedScene" uid="uid://b0xmcb5i4jey" path="res://_props/_prefabs/camera/scene_static_camera.tscn" id="14_5navl"]
[ext_resource type="Resource" uid="uid://bm0iyvgqfrqoj" path="res://_props/_prefabs/camera/change_room_tween.tres" id="15_meuxg"]
[ext_resource type="PackedScene" uid="uid://bonrls3iuhdqb" path="res://_props/_prefabs/player/player_trigger_volumn.tscn" id="17_tr4o2"]

[sub_resource type="Resource" id="Resource_5navl"]
script = ExtResource("6_d8y7x")

[sub_resource type="Resource" id="Resource_meuxg"]
script = ExtResource("6_d8y7x")

[sub_resource type="Resource" id="Resource_xs4uh"]
script = ExtResource("5_0kem1")
prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({
0: SubResource("Resource_5navl"),
1: SubResource("Resource_meuxg")
})

[sub_resource type="Resource" id="Resource_0kem1"]
script = ExtResource("6_d8y7x")
state_id = 1
use_trans = true
metadata/_custom_type_script = "uid://baqgorvlumyju"

[sub_resource type="Resource" id="Resource_tr4o2"]
script = ExtResource("5_0kem1")
prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({
0: SubResource("Resource_0kem1")
})

[sub_resource type="Resource" id="Resource_5ae3t"]
script = ExtResource("6_d8y7x")
state_id = 1
metadata/_custom_type_script = "uid://baqgorvlumyju"

[sub_resource type="Resource" id="Resource_5g8yg"]
script = ExtResource("5_0kem1")
prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({
1: SubResource("Resource_5ae3t")
})
metadata/_custom_type_script = "uid://fxpk2ot6otfh"

[sub_resource type="Resource" id="Resource_dmdkg"]
script = ExtResource("6_d8y7x")
use_trans = true
metadata/_custom_type_script = "uid://baqgorvlumyju"

[sub_resource type="Resource" id="Resource_bkxsb"]
script = ExtResource("6_d8y7x")
metadata/_custom_type_script = "uid://baqgorvlumyju"

[sub_resource type="Resource" id="Resource_0u35w"]
script = ExtResource("5_0kem1")
prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({
0: SubResource("Resource_dmdkg"),
1: SubResource("Resource_bkxsb")
})

[sub_resource type="Resource" id="Resource_fyfyw"]
script = ExtResource("12_jhhb1")
effect_type = 1
value = null
func_name = &"reset_door_state_id"
func_args = [0]
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="Resource" id="Resource_bco80"]
script = ExtResource("12_jhhb1")
effect_type = 1
value = null
func_name = &"door_close"
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="Resource" id="Resource_22pon"]
script = ExtResource("12_jhhb1")
effect_type = 1
value = null
func_name = &"reset_door_state_id"
func_args = [1]
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="Resource" id="Resource_25twt"]
script = ExtResource("12_jhhb1")
effect_type = 1
value = null
func_name = &"door_open"
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="Resource" id="Resource_rlswc"]
script = ExtResource("12_jhhb1")
target_type = 1
child_node_name = &"Tool"
effect_type = 1
value = null
func_name = &"release_self_priority"
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="Resource" id="Resource_1vufk"]
script = ExtResource("12_jhhb1")
target_type = 1
child_node_name = &"Tool"
effect_type = 1
value = null
func_name = &"hold_self_priority"
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[sub_resource type="RectangleShape2D" id="RectangleShape2D_meuxg"]
size = Vector2(41, 116)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_tr4o2"]
size = Vector2(130, 25)

[node name="l1_s2" type="Node2D"]
script = ExtResource("1_of2em")
metadata/_custom_type_script = "uid://5e157vdk6175"

[node name="[ID_ 9900002]" type="Node" parent="."]
script = ExtResource("2_61x7c")
scene_id = 9900002

[node name="SceneManager" type="Node" parent="."]
script = ExtResource("3_61x7c")

[node name="ActManager" type="Node" parent="."]
script = ExtResource("4_0kem1")
prop_state_map = Dictionary[int, ExtResource("5_0kem1")]({
0: SubResource("Resource_xs4uh"),
1: SubResource("Resource_tr4o2"),
2: SubResource("Resource_5g8yg"),
3: SubResource("Resource_0u35w")
})

[node name="Props" type="Node2D" parent="."]
script = ExtResource("5_d8y7x")

[node name="EventTriggerDoor" parent="Props" instance=ExtResource("6_jhhb1")]
position = Vector2(927, 10)
rotation = 1.5707964

[node name="[Prop_0000]" type="Node" parent="Props/EventTriggerDoor"]
script = ExtResource("7_5navl")
prop_id = 0

[node name="States" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]"]
script = ExtResource("8_tr4o2")

[node name="[ID_0] Close" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States"]
script = ExtResource("9_meuxg")
state_id = 0
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_fyfyw")])

[node name="From1" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States/[ID_0] Close"]
script = ExtResource("13_5navl")
from_state_id = 1
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_bco80")])
metadata/_custom_type_script = "uid://jeybblac0kg2"

[node name="[ID_1] Open" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States"]
script = ExtResource("9_meuxg")
state_id = 1
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_22pon")])

[node name="From0" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States/[ID_1] Open"]
script = ExtResource("13_5navl")
from_state_id = 0
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_25twt")])
metadata/_custom_type_script = "uid://jeybblac0kg2"

[node name="SceneStaticCamera" parent="Props" instance=ExtResource("14_5navl")]
process_mode = 3
position = Vector2(981, 183)
tween_resource = ExtResource("15_meuxg")

[node name="[Prop_0001]" type="Node" parent="Props/SceneStaticCamera"]
script = ExtResource("7_5navl")
prop_id = 1

[node name="States" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]"]
script = ExtResource("8_tr4o2")

[node name="[ID_0] Disable" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]/States"]
script = ExtResource("9_meuxg")
state_id = 0
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_rlswc")])

[node name="[ID_1] Enable" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]/States"]
script = ExtResource("9_meuxg")
state_id = 1
effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_1vufk")])

[node name="l1_s2_tile" parent="." groups=["GRAPABLE"] instance=ExtResource("10_xs4uh")]
tile_map_data = PackedByteArray("[encoded data, 7028 characters]")

[node name="Coin" parent="." instance=ExtResource("11_61x7c")]
position = Vector2(886, 151)

[node name="PlayerTriggerVolumn" parent="." instance=ExtResource("17_tr4o2")]
position = Vector2(688, 264)

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTriggerVolumn"]
position = Vector2(0, 1)
shape = SubResource("RectangleShape2D_meuxg")

[node name="PlayerTriggerVolumn2" parent="." instance=ExtResource("17_tr4o2")]
position = Vector2(927.645, -15)

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTriggerVolumn2"]
shape = SubResource("RectangleShape2D_tr4o2")

[connection signal="collected" from="Coin" to="SceneManager" method="_on_coin_collected"]
[connection signal="player_entered" from="PlayerTriggerVolumn" to="SceneManager" method="_on_player_trigger_volumn_player_entered"]
[connection signal="player_entered" from="PlayerTriggerVolumn2" to="SceneManager" method="_on_player_trigger_volumn_2_player_entered"]
