[gd_scene format=3 uid="uid://02opigrv0qff"]

[ext_resource type="Texture2D" uid="uid://cckiqfs0kwuuh" path="res://assets/gfx/door_barred.png" id="1_hpvv5"]
[ext_resource type="Script" uid="uid://do4062ppepheo" path="res://scripts/door.gd" id="1_uvdjg"]
[ext_resource type="AudioStream" uid="uid://dfolu80c534j4" path="res://assets/audio/sfx/environment/keydoor/unlock.mp3" id="3_la1wf"]
[ext_resource type="AudioStream" uid="uid://2w73l4k3704x" path="res://assets/audio/sfx/environment/pot/pot_drag1.mp3" id="4_18pbm"]
[ext_resource type="AudioStream" uid="uid://c6bp156a5ggdf" path="res://assets/audio/sfx/environment/keydoor/door_closes.mp3" id="5_18pbm"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_uvdjg"]
size = Vector2(26, 14)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_la1wf"]
size = Vector2(22, 18)

[node name="Door" type="StaticBody2D" unique_id=371155975]
collision_layer = 64
script = ExtResource("1_uvdjg")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1520856168]
texture = ExtResource("1_hpvv5")

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1691515105]
shape = SubResource("RectangleShape2D_uvdjg")

[node name="SfxOpenKeyDoor" type="AudioStreamPlayer2D" parent="." unique_id=47303726]
stream = ExtResource("3_la1wf")

[node name="SfxOpenStoneDoor" type="AudioStreamPlayer2D" parent="." unique_id=885417421]
stream = ExtResource("4_18pbm")

[node name="SfxOpenGateDoor" type="AudioStreamPlayer2D" parent="." unique_id=442358170]
stream = ExtResource("4_18pbm")

[node name="KeyInteractionArea" type="Area2D" parent="." unique_id=982067740]

[node name="CollisionShape2D" type="CollisionShape2D" parent="KeyInteractionArea" unique_id=1640987231]
shape = SubResource("RectangleShape2D_la1wf")
debug_color = Color(0.70196074, 0.67558956, 0.17869899, 0.41960785)

[node name="SfxDoorCloses" type="AudioStreamPlayer2D" parent="." unique_id=1074871158]
stream = ExtResource("5_18pbm")
max_distance = 1333.0
attenuation = 5.8563395
