the-crypt/objects/Door.tscn

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-07-22 18:15:21 -05:00
[gd_scene load_steps=6 format=2]
2020-07-20 16:28:05 -05:00
2020-07-21 20:06:39 -05:00
[ext_resource path="res://objects/Area2D.gd" type="Script" id=1]
[ext_resource path="res://art/door.png" type="Texture" id=2]
2020-07-22 18:15:21 -05:00
[ext_resource path="res://objects/Door.gd" type="Script" id=3]
2020-07-20 16:28:05 -05:00
[sub_resource type="Animation" id=1]
resource_name = "Door Opening"
length = 0.12
tracks/0/type = "value"
tracks/0/path = NodePath(".: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 ]
}
2020-07-21 01:07:58 -05:00
[sub_resource type="RectangleShape2D" id=2]
2020-07-20 16:28:05 -05:00
extents = Vector2( 14, 13 )
[node name="Door" type="Sprite"]
2020-07-21 20:06:39 -05:00
texture = ExtResource( 2 )
2020-07-20 16:28:05 -05:00
centered = false
hframes = 2
2020-07-21 17:49:04 -05:00
frame = 1
2020-07-22 18:15:21 -05:00
script = ExtResource( 3 )
2020-07-20 16:28:05 -05:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
"anims/Door Opening" = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
2020-07-21 20:06:39 -05:00
script = ExtResource( 1 )
2020-07-20 16:28:05 -05:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 16, 19 )
2020-07-21 01:07:58 -05:00
shape = SubResource( 2 )
2020-07-20 16:28:05 -05:00
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_Area2D_body_entered"]