[gd_scene load_steps=25 format=3 uid="uid://l84on3kv2s52"]

[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_emfh4"]
[ext_resource type="Texture2D" uid="uid://drllk3ld56b2u" path="res://Sprites/Actors/Doors/horizontal_door_3.png" id="2_nw4l4"]
[ext_resource type="Script" uid="uid://bbuhaam28lwld" path="res://Scripts/Components/Actors/DoorSpriteComponent.cs" id="3_spifk"]
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="4_4t32u"]
[ext_resource type="Script" uid="uid://crpkvxepkcrir" path="res://Scripts/Components/Actors/ForceFieldCollisionDisabler.cs" id="4_nw4l4"]
[ext_resource type="Texture2D" uid="uid://ce14kw0x4ynr0" path="res://Sprites/Actors/Doors/Basic_Door_Frame.png" id="5_nw4l4"]
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="5_spifk"]

[sub_resource type="AtlasTexture" id="AtlasTexture_fl7ln"]
atlas = ExtResource("2_nw4l4")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_ncp2n"]
atlas = ExtResource("2_nw4l4")
region = Rect2(128, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_7aoj5"]
atlas = ExtResource("2_nw4l4")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_6ae2y"]
atlas = ExtResource("2_nw4l4")
region = Rect2(64, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_0msij"]
atlas = ExtResource("2_nw4l4")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_mi0bi"]
atlas = ExtResource("2_nw4l4")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_q7fjo"]
atlas = ExtResource("2_nw4l4")
region = Rect2(160, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_8ovef"]
atlas = ExtResource("2_nw4l4")
region = Rect2(128, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_164qi"]
atlas = ExtResource("2_nw4l4")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_xtvt2"]
atlas = ExtResource("2_nw4l4")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_8ia80"]
atlas = ExtResource("2_nw4l4")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_okbwa"]
atlas = ExtResource("2_nw4l4")
region = Rect2(128, 0, 32, 32)

[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fl7ln")
}],
"loop": true,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ncp2n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7aoj5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6ae2y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0msij")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mi0bi")
}],
"loop": false,
"name": &"Closing",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_q7fjo")
}],
"loop": true,
"name": &"Destroyed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8ovef")
}],
"loop": true,
"name": &"Open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_164qi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xtvt2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8ia80")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_okbwa")
}],
"loop": false,
"name": &"Opening",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
size = Vector2(36, 32)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(36, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_yxvm8"]
atlas = ExtResource("5_nw4l4")
region = Rect2(0, 0, 32, 34)

[sub_resource type="SpriteFrames" id="SpriteFrames_8stvs"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yxvm8")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="HorizontalDoor" type="Area2D" groups=["Solid"]]
collision_layer = 64
collision_mask = 154
script = ExtResource("1_emfh4")
metadata/_edit_group_ = true

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_keeml")
animation = &"Opening"
script = ExtResource("3_spifk")

[node name="CollisionShape2D" type="CollisionShape2D" parent="." node_paths=PackedStringArray("_door")]
visible = false
shape = SubResource("RectangleShape2D_0wg11")
script = ExtResource("4_nw4l4")
_door = NodePath("..")

[node name="RigidBody2D" type="StaticBody2D" parent="."]
collision_layer = 64
collision_mask = 10

[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" node_paths=PackedStringArray("_door")]
visible = false
shape = SubResource("RectangleShape2D_f2rl6")
script = ExtResource("4_nw4l4")
_door = NodePath("../..")

[node name="DoorFrame" type="AnimatedSprite2D" parent="."]
z_index = 1
position = Vector2(0, -1)
sprite_frames = SubResource("SpriteFrames_8stvs")

[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
position = Vector2(0, 1)
stream = ExtResource("4_4t32u")
max_distance = 200.0

[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_spifk")
max_distance = 200.0

[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
vertices = PackedVector2Array(-16, -18, 16, -18, 16, 16, -16, 16)
