From bda92cc95c477d2ce613842db4e6fb47a4d079f1 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: Tue, 24 Mar 2026 22:07:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(Bullets):=20=E8=B0=83=E6=95=B4=E5=AD=90?= =?UTF-8?q?=E5=BC=B9=E7=A2=B0=E6=92=9E=E6=97=B6=E7=9A=84=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E9=9C=87=E5=8A=A8=E5=92=8C=E5=8F=8D=E5=86=B2=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加相机震动强度并优化反冲力计算公式,使用子弹速度和伤害的立方根来计算反冲力,使效果更符合游戏设计需求 --- scripts/Contents/Bullets/Parrier.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Contents/Bullets/Parrier.gd b/scripts/Contents/Bullets/Parrier.gd index 0b96dba..6559a45 100644 --- a/scripts/Contents/Bullets/Parrier.gd +++ b/scripts/Contents/Bullets/Parrier.gd @@ -28,8 +28,8 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞 eff.modulate = bullet.modulate.blend(bullet.texture.modulate) eff.rotation = position.angle_to_point(bullet.position) eff.shot() - CameraManager.shake(200, 250) - launcher.impluse((position - bullet.position).normalized() * sqrt(bullet.speed) * 500) + CameraManager.shake(250, 300) + launcher.impluse((position - bullet.position).normalized() * (bullet.speed * bullet.getDamage()) ** (1.0 / 3) * 250) # 摧毁其他子弹 bullet.tryDestroy() var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100)