mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 00:53:47 +00:00
Alert Signs
This commit is contained in:
parent
d3634a3dd2
commit
5452b36f32
13 changed files with 226 additions and 22 deletions
59
Scenes/Actors/alarm_sign.tscn
Normal file
59
Scenes/Actors/alarm_sign.tscn
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://dnbtou2fklyvp"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_kao8y"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/Events/AlarmDisableEvent.cs" id="2_8fwyu"]
|
||||
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="3_eg1gw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bodoftbnvjh6i" path="res://Sprites/Actors/AlertSign.png" id="4_7ysp5"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/AlarmSpriteSwitcher.cs" id="5_qohod"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hppa0"]
|
||||
script = ExtResource("2_8fwyu")
|
||||
WaitForCompletion = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_adk1y"]
|
||||
atlas = ExtResource("4_7ysp5")
|
||||
region = Rect2(16, 0, 16, 8)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jdxjv"]
|
||||
atlas = ExtResource("4_7ysp5")
|
||||
region = Rect2(32, 0, 16, 8)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jkso3"]
|
||||
atlas = ExtResource("4_7ysp5")
|
||||
region = Rect2(0, 0, 16, 8)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_25o7d"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_adk1y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jdxjv")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"alarmed",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jkso3")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="AlarmBox" type="Node2D"]
|
||||
script = ExtResource("1_kao8y")
|
||||
Events = Array[Object]([SubResource("Resource_hppa0")])
|
||||
|
||||
[node name="ControlPad" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("3_eg1gw")]
|
||||
Target = NodePath("..")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_25o7d")
|
||||
|
||||
[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
|
||||
script = ExtResource("5_qohod")
|
||||
_sprite = NodePath("../AnimatedSprite2D")
|
||||
Loading…
Add table
Add a link
Reference in a new issue