[gd_scene load_steps=9 format=2]

[ext_resource path="res://Rooms/Passage/passage.png" type="Texture" id=1]
[ext_resource path="res://Interact/Object.tscn" type="PackedScene" id=2]
[ext_resource path="res://Rooms/Passage/Passage.gd" type="Script" id=3]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7, 2 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 8, 2 )

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 3, 4 )

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 3, 9 )

[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 3, 9 )

[node name="Passage" type="Node2D"]
script = ExtResource( 3 )

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
hframes = 2

[node name="Floor" parent="." instance=ExtResource( 2 )]
type = "move"

[node name="CollisionShape2D" parent="Floor" index="0"]
position = Vector2( 15, 23 )
shape = SubResource( 1 )

[node name="Floor2" parent="." instance=ExtResource( 2 )]
type = "move"

[node name="CollisionShape2D" parent="Floor2" index="0"]
position = Vector2( 10, 27 )
shape = SubResource( 2 )

[node name="Shovel" parent="." instance=ExtResource( 2 )]
position = Vector2( 18, 21 )
player_animation = "GrabFloor"
player_facing = 1

[node name="CollisionShape2D" parent="Shovel" index="0"]
position = Vector2( -1, -6 )
shape = SubResource( 3 )

[node name="DoorLeft" parent="." instance=ExtResource( 2 )]
visible = false
position = Vector2( 8, 24 )
type = "door"
next_scene = "res://Rooms/SmallHouse/SmallHouse.tscn"
destination = Vector2( 25, 28 )
player_facing = 1
sound = "door_open"

[node name="CollisionShape2D" parent="DoorLeft" index="0"]
position = Vector2( -5, -8 )
shape = SubResource( 4 )

[node name="DoorLeftClosed" parent="." instance=ExtResource( 2 )]
position = Vector2( 10, 23 )
player_animation = "CantOpen"
player_facing = 1
sound = "door_closed"

[node name="CollisionShape2D" parent="DoorLeftClosed" index="0"]
position = Vector2( -7, -7 )
shape = SubResource( 4 )

[node name="DoorRight" parent="." instance=ExtResource( 2 )]
position = Vector2( 21, 23 )
type = "door"
next_scene = "res://Rooms/Outdoors2/Outdoors2.tscn"
destination = Vector2( 10, 21 )
player_facing = 0
sound = "door_open"

[node name="CollisionShape2D" parent="DoorRight" index="0"]
position = Vector2( 6, -6 )
shape = SubResource( 5 )
[connection signal="used" from="Shovel" to="." method="_on_Shovel_used"]
[connection signal="used" from="DoorLeft" to="." method="_on_DoorLeft_used"]
[connection signal="item_used" from="DoorLeftClosed" to="." method="_on_DoorLeftClosed_item_used"]

[editable path="Floor"]

[editable path="Floor2"]

[editable path="Shovel"]

[editable path="DoorLeft"]

[editable path="DoorLeftClosed"]

[editable path="DoorRight"]
