cirnogodot/Scenes/Door_Horizontal.tscn

185 lines
5.1 KiB
Text
Raw Normal View History

2025-03-01 23:46:25 +01:00
[gd_scene load_steps=24 format=3 uid="uid://l84on3kv2s52"]
2025-01-20 16:47:15 +01:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_emfh4"]
2025-02-21 21:37:24 +01:00
[ext_resource type="Texture2D" uid="uid://d4ialp36plt7v" path="res://Sprites/Actors/Doors/horizontal_door_1.png" id="2_2h3ih"]
2025-01-20 16:47:15 +01:00
[ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"]
2025-03-01 23:46:25 +01:00
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="4_4t32u"]
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="5_spifk"]
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_2qgx7"]
atlas = ExtResource("2_2h3ih")
2025-01-20 16:47:15 +01:00
region = Rect2(0, 0, 32, 32)
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_w2qco"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_3xj8k"]
atlas = ExtResource("2_2h3ih")
region = Rect2(96, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_ics4i"]
atlas = ExtResource("2_2h3ih")
region = Rect2(64, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_1nga0"]
atlas = ExtResource("2_2h3ih")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0bwul"]
atlas = ExtResource("2_2h3ih")
2025-01-20 16:47:15 +01:00
region = Rect2(0, 0, 32, 32)
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_nu0m6"]
atlas = ExtResource("2_2h3ih")
region = Rect2(160, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_4m6na"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_th1qr"]
atlas = ExtResource("2_2h3ih")
2025-01-21 00:10:07 +01:00
region = Rect2(0, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_br2ct"]
atlas = ExtResource("2_2h3ih")
region = Rect2(32, 0, 32, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_ektml"]
atlas = ExtResource("2_2h3ih")
region = Rect2(64, 0, 32, 32)
2025-01-21 00:10:07 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_m0l4n"]
atlas = ExtResource("2_2h3ih")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hcys5"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
2025-01-20 16:47:15 +01:00
[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
animations = [{
"frames": [{
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_2qgx7")
2025-01-20 16:47:15 +01:00
}],
"loop": true,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_w2qco")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3xj8k")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_ics4i")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_1nga0")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_0bwul")
2025-01-20 16:47:15 +01:00
}],
"loop": false,
"name": &"Closing",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_nu0m6")
}],
"loop": true,
"name": &"Destroyed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4m6na")
2025-01-20 16:47:15 +01:00
}],
"loop": true,
"name": &"Open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_th1qr")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_br2ct")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_ektml")
2025-01-20 16:47:15 +01:00
}, {
"duration": 1.0,
2025-02-21 21:37:24 +01:00
"texture": SubResource("AtlasTexture_m0l4n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hcys5")
2025-01-20 16:47:15 +01:00
}],
"loop": false,
"name": &"Opening",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
2025-02-24 22:30:29 +01:00
size = Vector2(36, 32)
2025-01-20 16:47:15 +01:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
2025-02-24 22:30:29 +01:00
size = Vector2(36, 32)
2025-01-20 16:47:15 +01:00
2025-02-21 21:37:24 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_o7w0f"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_8stvs"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_o7w0f")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
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-02-21 21:37:24 +01:00
animation = &"Closed"
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")
2025-02-21 21:37:24 +01:00
[node name="DoorFrame" type="AnimatedSprite2D" parent="."]
z_index = 1
sprite_frames = SubResource("SpriteFrames_8stvs")
2025-03-01 23:46:25 +01:00
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
position = Vector2(0, 1)
stream = ExtResource("4_4t32u")
max_distance = 200.0
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_spifk")
max_distance = 200.0
2025-01-20 16:47:15 +01:00
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]