[gd_scene load_steps=32 format=4 uid="uid://bt55vmoc83l6g"]

[ext_resource type="Script" uid="uid://5e157vdk6175" path="res://addons/reedscene/scene/ReedScene.gd" id="1_wiqi4"]
[ext_resource type="Script" uid="uid://bh066o84byplh" path="res://addons/reedscene/scene/ReedSceneID.gd" id="2_1t0dx"]
[ext_resource type="Script" uid="uid://43ula8nd3yl7" path="res://_game/scenes/scripts/s_l1_s1.gd" id="3_1t0dx"]
[ext_resource type="Script" uid="uid://dsgl7lbyjsiif" path="res://addons/reedscene/act/ActManager.gd" id="4_a224g"]
[ext_resource type="Script" uid="uid://fxpk2ot6otfh" path="res://addons/reedscene/act/Act.gd" id="5_a224g"]
[ext_resource type="Script" uid="uid://pxjf5vst08eo" path="res://addons/reedscene/prop/PropManager.gd" id="5_fyfyw"]
[ext_resource type="PackedScene" uid="uid://b5nx4dntm0gyn" path="res://_props/door_manager/event_trigger_door.tscn" id="6_8hwae"]
[ext_resource type="Script" uid="uid://baqgorvlumyju" path="res://addons/reedscene/act/SingleAct.gd" id="6_fyfyw"]
[ext_resource type="Script" uid="uid://b4menkyub4ce7" path="res://addons/reedscene/prop/PropComponent.gd" id="7_s6kod"]
[ext_resource type="Script" uid="uid://di41kt2tj34c2" path="res://addons/reedscene/prop/StateManager.gd" id="8_1dh04"]
[ext_resource type="Script" uid="uid://7lml6d1t5xtq" path="res://addons/reedscene/prop/PropState.gd" id="9_648qh"]
[ext_resource type="PackedScene" uid="uid://1l06de041i40" path="res://_levels/l_level_1.tscn" id="10_25twt"]
[ext_resource type="PackedScene" uid="uid://c3mievyfhx6ni" path="res://_props/coin/coin.tscn" id="11_1t0dx"]
[ext_resource type="Script" uid="uid://cdvgq0xqdbagk" path="res://addons/reedscene/prop/Effect/ReedPropEffect.gd" id="12_fyfyw"]
[ext_resource type="Script" uid="uid://jeybblac0kg2" path="res://addons/reedscene/prop/ReedTransition.gd" id="13_8hwae"]
[ext_resource type="PackedScene" uid="uid://b0xmcb5i4jey" path="res://_props/_prefabs/camera/scene_static_camera.tscn" id="14_s6kod"]

[sub_resource type="Resource" id="Resource_s6kod"]
script = ExtResource("6_fyfyw")

[sub_resource type="Resource" id="Resource_1dh04"]
script = ExtResource("6_fyfyw")

[sub_resource type="Resource" id="Resource_spdfw"]
script = ExtResource("6_fyfyw")
state_id = 1

[sub_resource type="Resource" id="Resource_ykqcq"]
script = ExtResource("5_a224g")
prop_state_map = Dictionary[int, ExtResource("6_fyfyw")]({
0: SubResource("Resource_s6kod"),
1: SubResource("Resource_1dh04"),
2: SubResource("Resource_spdfw")
})

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

[sub_resource type="Resource" id="Resource_648qh"]
script = ExtResource("5_a224g")
prop_state_map = Dictionary[int, ExtResource("6_fyfyw")]({
0: SubResource("Resource_gu0l6")
})

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

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

[sub_resource type="Resource" id="Resource_jh33u"]
script = ExtResource("5_a224g")
prop_state_map = Dictionary[int, ExtResource("6_fyfyw")]({
0: SubResource("Resource_onwc0"),
1: SubResource("Resource_7tspm")
})

[sub_resource type="Resource" id="Resource_fyfyw"]
script = ExtResource("12_fyfyw")
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_fyfyw")
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_fyfyw")
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_fyfyw")
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_fyfyw")
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_fyfyw")
target_type = 1
child_node_name = &"Tool"
effect_type = 1
value = null
func_name = &"hold_self_priority"
metadata/_custom_type_script = "uid://cdvgq0xqdbagk"

[node name="l1_s1" type="Node2D"]
script = ExtResource("1_wiqi4")
debug_log = true
metadata/_custom_type_script = "uid://5e157vdk6175"

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

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

[node name="ActManager" type="Node" parent="."]
script = ExtResource("4_a224g")
prop_state_map = Dictionary[int, ExtResource("5_a224g")]({
0: SubResource("Resource_ykqcq"),
1: SubResource("Resource_648qh"),
2: SubResource("Resource_jh33u")
})

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

[node name="EventTriggerDoor" parent="Props" instance=ExtResource("6_8hwae")]
position = Vector2(656, 268)

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

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

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

[node name="From1" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States/[ID_0] Close"]
script = ExtResource("13_8hwae")
from_state_id = 1
effects = Array[ExtResource("12_fyfyw")]([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_648qh")
state_id = 1
effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_22pon")])

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

[node name="EventTriggerDoor2" parent="Props" instance=ExtResource("6_8hwae")]
position = Vector2(15, 270)

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

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

[node name="[ID_0] Close" type="Node" parent="Props/EventTriggerDoor2/[Prop_0001]/States"]
script = ExtResource("9_648qh")
state_id = 0
effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_fyfyw")])

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

[node name="[ID_1] Open" type="Node" parent="Props/EventTriggerDoor2/[Prop_0001]/States"]
script = ExtResource("9_648qh")
state_id = 1
effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_22pon")])

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

[node name="SceneStaticCamera" parent="Props" instance=ExtResource("14_s6kod")]
position = Vector2(334, 183)
tween_on_load = false
draw_limits = true

[node name="[Prop_0002]" type="Node" parent="Props/SceneStaticCamera"]
script = ExtResource("7_s6kod")
prop_id = 2

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

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

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

[node name="l1_s1_tile" parent="." groups=["GRAPABLE"] instance=ExtResource("10_25twt")]
tile_map_data = PackedByteArray("[encoded data, 4500 characters]")

[node name="Coin" parent="." instance=ExtResource("11_1t0dx")]
position = Vector2(596, 291)

[connection signal="collected" from="Coin" to="SceneManager" method="_on_coin_collected"]
