Doors
This commit is contained in:
parent
0f3f6f0133
commit
c613eac80f
9 changed files with 70 additions and 57 deletions
22
metroidvania/Levels/Door.tscn
Normal file
22
metroidvania/Levels/Door.tscn
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue