Some tutorial
This commit is contained in:
1 parent
d9d5bb3259
commit
c9510f8902
16 files changed
+134
-22
No files matched your search
+2
-2
@@ -4,7 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bu5wgerfu7cbc" path="res://art/spike.png" id="2_7k7bx"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xfwl5"]
|
||||
size = Vector2(15, 12)
|
||||
size = Vector2(15, 7.5)
|
||||
|
||||
[node name="Spike" type="Node2D" unique_id=1739014101]
|
||||
script = ExtResource("1_7k7bx")
|
||||
@@ -17,7 +17,7 @@ texture = ExtResource("2_7k7bx")
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=170499029]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
||||
position = Vector2(-0.5, 0)
|
||||
position = Vector2(0, 4.75)
|
||||
shape = SubResource("RectangleShape2D_xfwl5")
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|
||||
Reference in new issue
Block a user