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/BigLaser.gd
T
fallingshrimp d42ef85507 feat(相机系统): 添加相机震动效果
- 在CameraManager中实现相机震动功能
- 为BigLaser添加触发相机震动的逻辑
- 在World场景中配置震动偏移量参数
2025-08-28 11:14:14 +08:00

15 lines
371 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.15)
position = launcher.texture.global_position
func applyDot():
hitbox.disabled = true
await TickTool.millseconds(50)
hitbox.disabled = false
await TickTool.millseconds(50)
return true