From 5126f5f536a49a556fbc39098b8d73ff27078b0c Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Fri, 26 May 2023 18:50:09 +0200 Subject: [PATCH] =?UTF-8?q?princesse/collisions:=20r=C3=A9gler=20les=20val?= =?UTF-8?q?eurs=20un=20poil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Meilleur feeling je trouve, à faire play test. --- princesse.tscn | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/princesse.tscn b/princesse.tscn index 5613e87..cfb6583 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -197,8 +197,8 @@ animations = [{ }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6r7th"] -radius = 5.0 -height = 42.6667 +radius = 4.33333 +height = 39.3333 [sub_resource type="Animation" id="Animation_uo4aj"] resource_name = "death" @@ -263,41 +263,41 @@ slide_on_ceiling = false floor_constant_speed = true script = ExtResource("1_dkp7s") JUMPING_SPEED = 230 -KICK_JUMP_LIMITER = 0.73 +KICK_JUMP_LIMITER = 0.75 COYOTE_LENGTH = 7 COYOTE_GRAB_LENGTH = 4 [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_q52wx") -animation = &"falling_diagonals" -frame_progress = 0.975648 +animation = &"walk" +frame_progress = 0.705596 [node name="wall_detect_left" type="RayCast2D" parent="."] -target_position = Vector2(-8, 0) +target_position = Vector2(-6, 0) collision_mask = 16 [node name="wall_detect_left2" type="RayCast2D" parent="."] position = Vector2(0, -16) -target_position = Vector2(-8, 0) +target_position = Vector2(-6, 0) collision_mask = 16 [node name="wall_detect_left3" type="RayCast2D" parent="."] position = Vector2(0, 22) -target_position = Vector2(-8, 0) +target_position = Vector2(-6, 0) collision_mask = 16 [node name="wall_detect_right" type="RayCast2D" parent="."] -target_position = Vector2(10, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="wall_detect_right2" type="RayCast2D" parent="."] position = Vector2(0, -16) -target_position = Vector2(10, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="wall_detect_right3" type="RayCast2D" parent="."] position = Vector2(0, 22) -target_position = Vector2(10, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="Camera2D" type="Camera2D" parent="."] @@ -308,7 +308,7 @@ drag_horizontal_enabled = true drag_vertical_enabled = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -position = Vector2(1, 2) +position = Vector2(0, 3) shape = SubResource("CapsuleShape2D_6r7th") [node name="ground_far_detect" type="RayCast2D" parent="."]