[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) [sub_resource type="AtlasTexture" id="AtlasTexture_8tyvt"] atlas = ExtResource("2_rnx3o") region = Rect2(0, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_o1fq1"] atlas = ExtResource("2_rnx3o") region = Rect2(0, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_wvr8p"] atlas = ExtResource("2_rnx3o") region = Rect2(0, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_t3pwa"] atlas = ExtResource("2_rnx3o") region = Rect2(0, 96, 32, 32) [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, "texture": SubResource("AtlasTexture_8tyvt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_o1fq1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wvr8p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t3pwa") }], "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) [node name="Area2D" type="Area2D"] 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") animation = &"Open" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] visible = false 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"] visible = false shape = SubResource("RectangleShape2D_f2rl6") [connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]