change player collision shape to a rectangle

This commit is contained in:
Chris Cromer 2022-04-06 23:43:23 -04:00
parent dffd810183
commit aeb3816ded
Signed by: cromer
GPG Key ID: FA91071797BEEEC2
1 changed files with 3 additions and 4 deletions

View File

@ -3,9 +3,8 @@
[ext_resource path="res://characters/player/sprites/green.tres" type="SpriteFrames" id=1]
[ext_resource path="res://characters/player/Player.gdns" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.0
height = 12.0
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7, 11.5 )
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 2 )
@ -16,7 +15,7 @@ animation = "idle"
centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 12, 12 )
position = Vector2( 12, 12.5 )
shape = SubResource( 1 )
[connection signal="player_moved" from="." to="." method="_on_Player_player_moved"]