mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
126 lines
3.3 KiB
Text
126 lines
3.3 KiB
Text
[gd_scene load_steps=16 format=3 uid="uid://bc64lr3vlwchq"]
|
|
|
|
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_e61bg"]
|
|
[ext_resource type="Texture2D" uid="uid://dwcjixrhq4cdv" path="res://Sprites/DoorVertical.png" id="1_vdvtb"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mbysk"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cswit"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5twlp"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(32, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_appi3"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(16, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qf4nm"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mvjy4"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hqwo7"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjrcg"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(16, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pjqv0"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(32, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6brcl"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mbysk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Closed",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cswit")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5twlp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_appi3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qf4nm")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Closing",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mvjy4")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Open",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hqwo7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fjrcg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pjqv0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6brcl")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Opening",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
|
|
size = Vector2(8, 48)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
|
|
size = Vector2(8, 48)
|
|
|
|
[node name="VerticalDoor" type="Area2D" groups=["Solid"]]
|
|
collision_layer = 64
|
|
collision_mask = 154
|
|
script = ExtResource("1_e61bg")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_keeml")
|
|
animation = &"Closing"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_0wg11")
|
|
|
|
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
|
collision_layer = 64
|
|
collision_mask = 10
|
|
gravity_scale = 0.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
|
shape = SubResource("RectangleShape2D_f2rl6")
|
|
|
|
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]
|