1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BigLaser.gd
T
fallingshrimp d58afd6f80 fix(BigLaser): 调整激光旋转的插值速度以改善追踪效果
将lerp_angle的插值系数从0.15调整为0.1,使激光旋转更平滑地追踪鼠标位置
2025-08-28 11:17:53 +08:00

15 lines
370 B
GDScript

extends BulletBase
class_name BigLaser
func spawn():
CameraManager.shake(5000)
func ai():
rotation = lerp_angle(rotation, ((get_global_mouse_position() - position).angle()), 0.1)
position = launcher.texture.global_position
func applyDot():
hitbox.disabled = true
await TickTool.millseconds(50)
hitbox.disabled = false
await TickTool.millseconds(50)
return true