mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
d42ef85507
- 在CameraManager中实现相机震动功能 - 为BigLaser添加触发相机震动的逻辑 - 在World场景中配置震动偏移量参数
15 lines
371 B
GDScript
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
|