mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
d58afd6f80
将lerp_angle的插值系数从0.15调整为0.1,使激光旋转更平滑地追踪鼠标位置
15 lines
370 B
GDScript
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
|