1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Diamond.gd
T
fallingshrimp d28ee8f9d2 fix: 调整子弹追踪旋转速度以改善游戏体验
将子弹追踪旋转的插值系数从0.15降低到0.1,使子弹转向更加平滑。这可以避免子弹在追踪目标时出现过于剧烈的转向,提升游戏体验。
2025-08-28 12:45:54 +08:00

10 lines
314 B
GDScript

extends BulletBase
class_name Diamond
const traceTime = 2000
func ai():
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
canDamageSelf = !(timeLived() >= traceTime)
forward(Vector2.from_angle(rotation))