From 3c1f89f807c3dd7e55db9268cd688760cc68ad2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sat, 13 Sep 2025 20:43:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=92=E8=89=B2):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=86=8A=E8=A7=92=E8=89=B2=E7=9A=84=E5=86=B2=E5=88=BA=E9=80=9F?= =?UTF-8?q?=E5=BA=A6=E5=92=8C=E6=94=BB=E5=87=BB=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加熊角色的冲刺倍率从50到60,优化冲刺移动逻辑使其更稳定 修正熊角色攻击动画的时间点和轨迹点,使动画更流畅 --- components/Bullets/BossAttack/Bear/ForeverRainbow.tscn | 6 +++--- scripts/Contents/Characters/Bear.gd | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn b/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn index 851657b..ea00a55 100644 --- a/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn +++ b/components/Bullets/BossAttack/Bear/ForeverRainbow.tscn @@ -92,7 +92,7 @@ tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 0, 0), -"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0), +"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 3, 11) } tracks/1/type = "bezier" @@ -103,7 +103,7 @@ tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "handle_modes": PackedInt32Array(0, 0, 0), -"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0), +"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 3, 11) } tracks/2/type = "bezier" @@ -115,7 +115,7 @@ tracks/2/loop_wrap = true tracks/2/keys = { "handle_modes": PackedInt32Array(0, 0, 0), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0, 3, 11) +"times": PackedFloat32Array(0, 1, 11) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_edsep"] diff --git a/scripts/Contents/Characters/Bear.gd b/scripts/Contents/Characters/Bear.gd index 9904415..ae9962e 100644 --- a/scripts/Contents/Characters/Bear.gd +++ b/scripts/Contents/Characters/Bear.gd @@ -10,7 +10,7 @@ func register(): attackCooldownMap[1] = 10000 attackCooldownMap[2] = 8000 attackCooldownMap[3] = 13000 - sprintMultiplier = 50 + sprintMultiplier = 60 func spawn(): texture.play("walk") func ai(): @@ -50,4 +50,4 @@ func attack(type): return false return true func sprint(): - move((currentFocusedBoss.position - position).normalized() * sprintMultiplier * Vector2(1, 0), true) + move(Vector2(sign((currentFocusedBoss.position - position).x * sprintMultiplier), 0), true)