40 lines
879 B
Plaintext
40 lines
879 B
Plaintext
|
[gd_scene load_steps=4 format=2]
|
||
|
|
||
|
[ext_resource path="res://art/door.png" type="Texture" id=1]
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id=1]
|
||
|
animations = [ {
|
||
|
"frames": [ ],
|
||
|
"loop": true,
|
||
|
"name": "default",
|
||
|
"speed": 5.0
|
||
|
} ]
|
||
|
|
||
|
[sub_resource type="Animation" id=2]
|
||
|
resource_name = "Door opening"
|
||
|
length = 0.12
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("door:frame")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0, 0.1 ),
|
||
|
"transitions": PoolRealArray( 1, 1 ),
|
||
|
"update": 1,
|
||
|
"values": [ 0, 1 ]
|
||
|
}
|
||
|
|
||
|
[node name="Door Animation" type="AnimatedSprite"]
|
||
|
frames = SubResource( 1 )
|
||
|
|
||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||
|
"anims/Door opening" = SubResource( 2 )
|
||
|
|
||
|
[node name="door" type="Sprite" parent="."]
|
||
|
texture = ExtResource( 1 )
|
||
|
centered = false
|
||
|
hframes = 2
|
||
|
frame = 1
|