[gd_scene load_steps=6 format=3 uid="uid://chhytv8se7mfk"] [ext_resource type="Script" path="res://scripts/entities/Door.cs" id="1_ckaca"] [ext_resource type="Texture2D" uid="uid://cn362llclhulw" path="res://sprites/furniture/door-closed.png" id="1_lnba4"] [ext_resource type="Texture2D" uid="uid://ccv54fdk8unka" path="res://sprites/furniture/door-open.png" id="3_ornej"] [sub_resource type="SpriteFrames" id="SpriteFrames_v2loo"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("1_lnba4") }], "loop": true, "name": &"closed", "speed": 1.0 }, { "frames": [{ "duration": 1.0, "texture": ExtResource("3_ornej") }], "loop": true, "name": &"open", "speed": 1.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_srxyv"] size = Vector2(32, 60) [node name="DoorClosed" type="Node2D"] script = ExtResource("1_ckaca") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_v2loo") animation = &"closed" [node name="StaticBody2D" type="StaticBody2D" parent="."] collision_layer = 4 collision_mask = 4 [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(0, 6) shape = SubResource("RectangleShape2D_srxyv")