mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Tutorial
This commit is contained in:
parent
8c3ed1f7c7
commit
b07a8fe60d
33 changed files with 594 additions and 58 deletions
13
Scenes/Interactable/ScriptableDisabledAlarmTrigger.tscn
Normal file
13
Scenes/Interactable/ScriptableDisabledAlarmTrigger.tscn
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://b0133vafvobxf"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_ggdoq"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/AlarmTrigger.cs" id="2_5wlne"]
|
||||
|
||||
[node name="ScriptableAlarmTrigger" type="Node2D"]
|
||||
script = ExtResource("1_ggdoq")
|
||||
Events = Array[Object]([])
|
||||
|
||||
[node name="AlarmTrigger" type="Node2D" parent="." node_paths=PackedStringArray("Target")]
|
||||
script = ExtResource("2_5wlne")
|
||||
TriggerType = 1
|
||||
Target = NodePath("..")
|
||||
12
Scenes/Interactable/ScriptableEnabledAlarmTrigger.tscn
Normal file
12
Scenes/Interactable/ScriptableEnabledAlarmTrigger.tscn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://ca6befbx0nurt"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_kxf32"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/AlarmTrigger.cs" id="2_kl708"]
|
||||
|
||||
[node name="ScriptableEnabledAlarmTrigger" type="Node2D"]
|
||||
script = ExtResource("1_kxf32")
|
||||
Events = Array[Object]([])
|
||||
|
||||
[node name="AlarmTrigger" type="Node2D" parent="." node_paths=PackedStringArray("Target")]
|
||||
script = ExtResource("2_kl708")
|
||||
Target = NodePath("..")
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://d1h48wgasakk4"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://d1h48wgasakk4"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_2d4he"]
|
||||
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="2_2xddf"]
|
||||
|
|
@ -10,26 +10,41 @@
|
|||
script = ExtResource("2_umsjn")
|
||||
WaitForCompletion = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uh6p2"]
|
||||
[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_wt4ye"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_srsfb"]
|
||||
atlas = ExtResource("2_slydm")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ucweu"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ll0ki"]
|
||||
atlas = ExtResource("2_slydm")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kbgi5"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uh6p2")
|
||||
"texture": SubResource("AtlasTexture_enwfk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wt4ye")
|
||||
"texture": SubResource("AtlasTexture_8onhd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s6se2")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"alarmed",
|
||||
|
|
@ -37,7 +52,13 @@ animations = [{
|
|||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ucweu")
|
||||
"texture": SubResource("AtlasTexture_t1vgp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_srsfb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ll0ki")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
|
|
@ -53,8 +74,8 @@ Target = NodePath("..")
|
|||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_kbgi5")
|
||||
animation = &"alarmed"
|
||||
frame_progress = 0.613245
|
||||
autoplay = "default"
|
||||
frame_progress = 0.890588
|
||||
|
||||
[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
|
||||
script = ExtResource("5_7g2v5")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue