[gd_scene load_steps=16 format=3 uid="uid://d1h48wgasakk4"]

[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="1_2d4he"]
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_vly4n"]
[ext_resource type="Texture2D" uid="uid://bpc66amnvvkrn" path="res://Sprites/AlarmBox.png" id="2_slydm"]
[ext_resource type="Script" uid="uid://donxnd50p7dm8" path="res://Scripts/Resources/Events/AlarmDisableEvent.cs" id="2_umsjn"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="3_m2axc"]
[ext_resource type="Script" uid="uid://daqdq17qiessy" path="res://Scripts/Components/AlarmSpriteSwitcher.cs" id="5_7g2v5"]

[sub_resource type="Resource" id="Resource_hppa0"]
script = ExtResource("2_umsjn")
WaitForCompletion = true

[sub_resource type="CircleShape2D" id="CircleShape2D_m2axc"]

[sub_resource type="AtlasTexture" id="AtlasTexture_enwfk"]
atlas = ExtResource("2_slydm")
region = Rect2(48, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_8onhd"]
atlas = ExtResource("2_slydm")
region = Rect2(64, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_s6se2"]
atlas = ExtResource("2_slydm")
region = Rect2(80, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_t1vgp"]
atlas = ExtResource("2_slydm")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_srsfb"]
atlas = ExtResource("2_slydm")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_ll0ki"]
atlas = ExtResource("2_slydm")
region = Rect2(32, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_kbgi5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_enwfk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8onhd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s6se2")
}],
"loop": true,
"name": &"alarmed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_t1vgp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_srsfb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ll0ki")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="AlarmBox" type="Area2D" node_paths=PackedStringArray("Targets") groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_vly4n")
Targets = [NodePath("AlarmBox")]

[node name="AlarmBox" type="Node2D" parent="." groups=["Interactable"]]
script = ExtResource("1_2d4he")
Events = Array[ExtResource("3_m2axc")]([SubResource("Resource_hppa0")])

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_m2axc")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_kbgi5")
autoplay = "default"
frame_progress = 0.890588

[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
script = ExtResource("5_7g2v5")
_sprite = NodePath("../AnimatedSprite2D")
