2025-03-11 16:41:07 +01:00
|
|
|
[gd_scene load_steps=16 format=3 uid="uid://d1h48wgasakk4"]
|
2025-02-04 13:22:05 +01:00
|
|
|
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="1_2d4he"]
|
2025-03-11 16:17:29 +01:00
|
|
|
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_vly4n"]
|
2025-02-04 13:22:05 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bpc66amnvvkrn" path="res://Sprites/AlarmBox.png" id="2_slydm"]
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://donxnd50p7dm8" path="res://Scripts/Resources/Events/AlarmDisableEvent.cs" id="2_umsjn"]
|
2025-03-11 16:41:07 +01:00
|
|
|
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="3_m2axc"]
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://daqdq17qiessy" path="res://Scripts/Components/AlarmSpriteSwitcher.cs" id="5_7g2v5"]
|
2025-02-04 13:22:05 +01:00
|
|
|
|
2025-02-16 16:26:05 +01:00
|
|
|
[sub_resource type="Resource" id="Resource_hppa0"]
|
|
|
|
|
script = ExtResource("2_umsjn")
|
|
|
|
|
WaitForCompletion = true
|
2025-02-04 13:22:05 +01:00
|
|
|
|
2025-03-11 16:17:29 +01:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_m2axc"]
|
|
|
|
|
|
2025-02-21 18:57:00 +01:00
|
|
|
[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"]
|
2025-02-04 13:22:05 +01:00
|
|
|
atlas = ExtResource("2_slydm")
|
|
|
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
|
|
2025-02-21 18:57:00 +01:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_srsfb"]
|
2025-02-04 13:22:05 +01:00
|
|
|
atlas = ExtResource("2_slydm")
|
|
|
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
|
|
2025-02-21 18:57:00 +01:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ll0ki"]
|
2025-02-04 13:22:05 +01:00
|
|
|
atlas = ExtResource("2_slydm")
|
2025-02-21 18:57:00 +01:00
|
|
|
region = Rect2(32, 0, 16, 16)
|
2025-02-04 13:22:05 +01:00
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_kbgi5"]
|
|
|
|
|
animations = [{
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
2025-02-21 18:57:00 +01:00
|
|
|
"texture": SubResource("AtlasTexture_enwfk")
|
2025-02-04 13:22:05 +01:00
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
2025-02-21 18:57:00 +01:00
|
|
|
"texture": SubResource("AtlasTexture_8onhd")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_s6se2")
|
2025-02-04 13:22:05 +01:00
|
|
|
}],
|
|
|
|
|
"loop": true,
|
|
|
|
|
"name": &"alarmed",
|
|
|
|
|
"speed": 5.0
|
|
|
|
|
}, {
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
2025-02-21 18:57:00 +01:00
|
|
|
"texture": SubResource("AtlasTexture_t1vgp")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_srsfb")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_ll0ki")
|
2025-02-04 13:22:05 +01:00
|
|
|
}],
|
|
|
|
|
"loop": true,
|
|
|
|
|
"name": &"default",
|
|
|
|
|
"speed": 5.0
|
|
|
|
|
}]
|
|
|
|
|
|
2025-03-11 16:17:29 +01:00
|
|
|
[node name="AlarmBox" type="Area2D" node_paths=PackedStringArray("Targets") groups=["Interactable"]]
|
2025-03-11 16:41:07 +01:00
|
|
|
collision_layer = 4
|
|
|
|
|
collision_mask = 2
|
2025-03-11 16:17:29 +01:00
|
|
|
script = ExtResource("1_vly4n")
|
|
|
|
|
Targets = [NodePath("AlarmBox")]
|
|
|
|
|
|
|
|
|
|
[node name="AlarmBox" type="Node2D" parent="." groups=["Interactable"]]
|
2025-02-16 16:26:05 +01:00
|
|
|
script = ExtResource("1_2d4he")
|
2025-03-11 16:41:07 +01:00
|
|
|
Events = Array[ExtResource("3_m2axc")]([SubResource("Resource_hppa0")])
|
2025-02-04 13:22:05 +01:00
|
|
|
|
2025-03-11 16:17:29 +01:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("CircleShape2D_m2axc")
|
2025-02-04 13:22:05 +01:00
|
|
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
|
sprite_frames = SubResource("SpriteFrames_kbgi5")
|
2025-02-21 18:57:00 +01:00
|
|
|
autoplay = "default"
|
|
|
|
|
frame_progress = 0.890588
|
2025-02-16 16:26:05 +01:00
|
|
|
|
|
|
|
|
[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
|
|
|
|
|
script = ExtResource("5_7g2v5")
|
|
|
|
|
_sprite = NodePath("../AnimatedSprite2D")
|