Last stretch
This commit is contained in:
parent
466a154972
commit
68271c94ed
13 changed files with 338 additions and 99 deletions
|
@ -1,8 +1,40 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://chhytv8se7mfk"]
|
||||
[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"]
|
||||
|
||||
[node name="door_closed" type="Node2D"]
|
||||
[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
|
||||
}]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_lnba4")
|
||||
[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="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(0, 6)
|
||||
shape = SubResource("RectangleShape2D_srxyv")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue