23 lines
606 B
Plaintext
23 lines
606 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Assets/World/Door.png" type="Texture" id=1]
|
|
[ext_resource path="res://Levels/Door.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 8, 16 )
|
|
|
|
[node name="Door" type="Area2D" groups=[
|
|
"Door",
|
|
]]
|
|
collision_layer = 0
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Collider" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( -6, 0 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_Door_body_entered"]
|