adjusted player hitbox
This commit is contained in:
parent
6b1f260c86
commit
55d26ac6ca
9 changed files with 161 additions and 22 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=27 format=2]
|
||||
[gd_scene load_steps=28 format=2]
|
||||
|
||||
[ext_resource path="res://objects/player/player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/player/sg_walk.png" type="Texture" id=2]
|
||||
|
@ -27,7 +27,10 @@ shader = ExtResource( 13 )
|
|||
shader_param/palette = ExtResource( 8 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=6]
|
||||
extents = Vector2( 4, 7 )
|
||||
extents = Vector2( 2.5, 5 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=39]
|
||||
extents = Vector2( 2.5, 5 )
|
||||
|
||||
[sub_resource type="Animation" id=29]
|
||||
resource_name = "climb"
|
||||
|
@ -613,22 +616,21 @@ region_enabled = true
|
|||
region_rect = Rect2( 0, 0, 32, 32 )
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." groups=["player"]]
|
||||
visible = false
|
||||
position = Vector2( 0, 3 )
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2( 0.5, 2 )
|
||||
shape = SubResource( 6 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." groups=["sword"]]
|
||||
visible = false
|
||||
position = Vector2( 0, 3 )
|
||||
shape = SubResource( 6 )
|
||||
position = Vector2( 0.5, 5 )
|
||||
shape = SubResource( 39 )
|
||||
|
||||
[node name="ClimbRay" type="RayCast2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2( 4, 10 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 0, -14 )
|
||||
cast_to = Vector2( 0, -10 )
|
||||
collision_mask = 4
|
||||
collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue