cirnogodot/Scenes/Door_Horizontal.tscn

128 lines
3.4 KiB
Text
Raw Normal View History

2025-01-20 16:47:15 +01:00
[gd_scene load_steps=16 format=3 uid="uid://l84on3kv2s52"]
[ext_resource type="Script" path="res://Scripts/Door.cs" id="1_emfh4"]
[ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"]
[sub_resource type="AtlasTexture" id="AtlasTexture_awtxv"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ocjdv"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_we0if"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_em3e7"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fehs4"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g8abm"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
2025-01-21 00:10:07 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_8tyvt"]
2025-01-20 16:47:15 +01:00
atlas = ExtResource("2_rnx3o")
2025-01-21 00:10:07 +01:00
region = Rect2(0, 0, 32, 32)
2025-01-20 16:47:15 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_o1fq1"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 32, 32, 32)
2025-01-21 00:10:07 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_wvr8p"]
2025-01-20 16:47:15 +01:00
atlas = ExtResource("2_rnx3o")
2025-01-21 00:10:07 +01:00
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_t3pwa"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
2025-01-20 16:47:15 +01:00
[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_awtxv")
}],
"loop": true,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ocjdv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_we0if")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_em3e7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fehs4")
}],
"loop": false,
"name": &"Closing",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_g8abm")
}],
"loop": true,
"name": &"Open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2025-01-21 00:10:07 +01:00
"texture": SubResource("AtlasTexture_8tyvt")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-01-21 00:10:07 +01:00
"texture": SubResource("AtlasTexture_o1fq1")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-01-21 00:10:07 +01:00
"texture": SubResource("AtlasTexture_wvr8p")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-01-21 00:10:07 +01:00
"texture": SubResource("AtlasTexture_t3pwa")
2025-01-20 16:47:15 +01:00
}],
"loop": false,
"name": &"Opening",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(32, 32)
2025-02-15 22:29:29 +01:00
[node name="HorizontalDoor" type="Area2D" groups=["Solid"]]
2025-01-20 16:47:15 +01:00
collision_layer = 64
collision_mask = 154
script = ExtResource("1_emfh4")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_keeml")
2025-01-21 00:10:07 +01:00
animation = &"Open"
2025-01-20 16:47:15 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2025-01-21 22:07:34 +01:00
visible = false
2025-01-20 16:47:15 +01:00
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"]
2025-01-21 22:07:34 +01:00
visible = false
2025-01-20 16:47:15 +01:00
shape = SubResource("RectangleShape2D_f2rl6")
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]