2020-07-20 16:28:05 -05:00
|
|
|
[gd_scene load_steps=5 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://art/door.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://Area2D.gd" type="Script" id=2]
|
|
|
|
|
|
|
|
[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"]
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
centered = false
|
|
|
|
hframes = 2
|
2020-07-21 17:49:04 -05:00
|
|
|
frame = 1
|
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="."]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[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"]
|