85 lines
2.4 KiB
Plaintext
85 lines
2.4 KiB
Plaintext
[gd_scene load_steps=12 format=4]
|
|
|
|
[ext_resource type="Texture2D" path="res://Sprites/Props/magicdoor1.png" id="1"]
|
|
[ext_resource type="Script" path="res://Scripts/Events/MagicDoor.cs" id="2"]
|
|
[ext_resource type="Texture2D" path="res://Sprites/Props/magicdoor2.png" id="3"]
|
|
[ext_resource type="Script" path="res://Scripts/Check.cs" id="4"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m7h6p"]
|
|
atlas = ExtResource("3")
|
|
region = Rect2(0, 0, 32, 11)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wp6h8"]
|
|
atlas = ExtResource("3")
|
|
region = Rect2(32, 0, 32, 11)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bwmgu"]
|
|
atlas = ExtResource("3")
|
|
region = Rect2(64, 0, 32, 11)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0pp3n"]
|
|
atlas = ExtResource("3")
|
|
region = Rect2(96, 0, 32, 11)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gnyxx"]
|
|
atlas = ExtResource("3")
|
|
region = Rect2(128, 0, 32, 11)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_u0f76"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_m7h6p")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wp6h8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_bwmgu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0pp3n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gnyxx")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qrrg1"]
|
|
size = Vector2(34, 11)
|
|
|
|
[node name="MagicDoor" type="Sprite2D" node_paths=PackedStringArray("smoke")]
|
|
position = Vector2(0, -1)
|
|
texture = ExtResource("1")
|
|
offset = Vector2(0, -21)
|
|
hframes = 4
|
|
script = ExtResource("2")
|
|
smoke = NodePath("Smoke")
|
|
neededFlag = 120
|
|
|
|
[node name="Smoke" type="AnimatedSprite2D" parent="."]
|
|
z_index = -1
|
|
position = Vector2(0, 6)
|
|
sprite_frames = SubResource("SpriteFrames_u0f76")
|
|
autoplay = "default"
|
|
frame_progress = 0.8402259945869446
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2(0, -4.5)
|
|
shape = SubResource("RectangleShape2D_qrrg1")
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
script = ExtResource("4")
|
|
callEvent = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(0, -4.5)
|
|
shape = SubResource("RectangleShape2D_qrrg1")
|
|
|
|
[connection signal="OnTrigger" from="Area2D" to="." method="Interact"]
|