This commit is contained in:
Felipe M 2021-05-20 23:14:20 +02:00
parent 0f3f6f0133
commit c613eac80f
Signed by: fmartingr
GPG key ID: 716BC147715E716F
9 changed files with 70 additions and 57 deletions

View file

@ -0,0 +1,22 @@
[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"]