[gd_scene load_steps=28 format=3 uid="uid://b0gpbkxdfbnjh"]

[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_3s51g"]
[ext_resource type="Texture2D" uid="uid://gc24sjyj47x6" path="res://Sprites/Actors/ForceFieldHorizontal.png" id="2_12wxm"]
[ext_resource type="Shader" uid="uid://0ruey5bjl7mh" path="res://Shaders/Blink.gdshader" id="2_q7pky"]
[ext_resource type="Material" uid="uid://cdaeormgf78de" path="res://Resources/Materials/Static_Scanlines.tres" id="3_8cguw"]
[ext_resource type="Script" uid="uid://cvsrm74jftau8" path="res://Scripts/Components/Actors/ForceFieldSpriteComponent.cs" id="5_3s51g"]
[ext_resource type="AudioStream" uid="uid://ciuv2acfujlys" path="res://SFX/Artninja_Forcefield_Enable.wav" id="5_8cguw"]
[ext_resource type="AudioStream" uid="uid://ccxjo86nvcl54" path="res://SFX/Artninja_Forcefield_Disable.wav" id="6_3s51g"]
[ext_resource type="Script" uid="uid://crpkvxepkcrir" path="res://Scripts/Components/Actors/ForceFieldCollisionDisabler.cs" id="6_sqafs"]

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

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

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

[sub_resource type="AtlasTexture" id="AtlasTexture_drt56"]
atlas = ExtResource("2_12wxm")
region = Rect2(224, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_vjndy"]
atlas = ExtResource("2_12wxm")
region = Rect2(192, 0, 32, 32)

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

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

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

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

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

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

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

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

[sub_resource type="AtlasTexture" id="AtlasTexture_uxj7e"]
atlas = ExtResource("2_12wxm")
region = Rect2(192, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_bwgur"]
atlas = ExtResource("2_12wxm")
region = Rect2(224, 0, 32, 32)

[sub_resource type="SpriteFrames" id="SpriteFrames_h2s1d"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gecst")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g2dl7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0mu7k")
}],
"loop": true,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_drt56")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vjndy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_83rc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b6r7h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k15wc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_26ncf")
}],
"loop": false,
"name": &"Closing",
"speed": 5.0
}, {
"frames": [],
"loop": true,
"name": &"Open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hui6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_djxwi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j1q4l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nfeg1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uxj7e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bwgur")
}],
"loop": false,
"name": &"Opening",
"speed": 5.0
}]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_fipgw"]
shader = ExtResource("2_q7pky")
shader_parameter/blink_color = Color(0, 0, 0, 1)
shader_parameter/blink_intensity = 0.0
shader_parameter/teleport_progress = 0.0
shader_parameter/scanline_density = 50.0

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

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

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

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(1, 1, 1, 0.784314)
sprite_frames = SubResource("SpriteFrames_h2s1d")
animation = &"Closed"
script = ExtResource("5_3s51g")
TurnOffMaterial = SubResource("ShaderMaterial_fipgw")
ActiveMaterial = ExtResource("3_8cguw")

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

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

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

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

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