changed hitbox so can go between walls

This commit is contained in:
pennyrigate 2023-01-15 23:36:19 -05:00
parent 5f3136a838
commit 25fcdd6f54
2 changed files with 27 additions and 37 deletions

File diff suppressed because one or more lines are too long

View file

@ -10,10 +10,10 @@ shader_param/border_color = Color( 0, 0, 0, 1 )
shader_param/border_corners = false shader_param/border_corners = false
[sub_resource type="RectangleShape2D" id=2] [sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 5, 4.5 ) extents = Vector2( 3.9, 3.9 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 5, 4.5 ) extents = Vector2( 4, 4 )
[node name="Rock" type="KinematicBody2D" groups=["pushable"]] [node name="Rock" type="KinematicBody2D" groups=["pushable"]]
collision_layer = 4 collision_layer = 4
@ -26,14 +26,14 @@ texture = ExtResource( 1 )
centered = false centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 4, 3.5 ) position = Vector2( 4, 4 )
shape = SubResource( 2 ) shape = SubResource( 2 )
[node name="Area2D" type="Area2D" parent="." groups=["squash"]] [node name="Area2D" type="Area2D" parent="." groups=["squash"]]
position = Vector2( -1, 0 ) position = Vector2( -1, 0 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 5, 3.5 ) position = Vector2( 5, 4 )
shape = SubResource( 3 ) shape = SubResource( 3 )
[node name="Bottom" type="Position2D" parent="."] [node name="Bottom" type="Position2D" parent="."]