-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdoor.tscn
34 lines (26 loc) · 1.04 KB
/
door.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[gd_scene load_steps=6 format=3 uid="uid://clikcsot5ncta"]
[ext_resource type="Texture2D" uid="uid://cmyw7fmkbaox3" path="res://monochrome_tilemap_transparent.png" id="1_7oy22"]
[ext_resource type="Script" path="res://door.gd" id="1_aiu3c"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oxvb3"]
size = Vector2(14, 15)
[sub_resource type="AtlasTexture" id="AtlasTexture_omglc"]
atlas = ExtResource("1_7oy22")
region = Rect2(323, 34, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_gwnvh"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_omglc")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Door" type="Area2D"]
script = ExtResource("1_aiu3c")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 0.5)
shape = SubResource("RectangleShape2D_oxvb3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_gwnvh")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]