added collision

This commit is contained in:
2022-11-12 12:59:30 +01:00
parent 906738514b
commit b8e6fe9426
6 changed files with 57 additions and 22 deletions

View File

@@ -11,15 +11,11 @@ animations = [ {
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 30.0
height = 4.0
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 30.5, 30.5 )
[node name="Player" type="Area2D"]
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )