2025-08-27 19:59:05 +08:00
|
|
|
extends BulletBase
|
|
|
|
|
class_name BigLaser
|
|
|
|
|
|
2025-08-28 11:14:14 +08:00
|
|
|
func spawn():
|
2025-08-28 14:15:01 +08:00
|
|
|
CameraManager.shake(5000, 100)
|
2025-08-28 12:00:09 +08:00
|
|
|
CameraManager.playAnimation("bigLaser")
|
2025-08-27 19:59:05 +08:00
|
|
|
func ai():
|
2025-08-28 11:17:53 +08:00
|
|
|
rotation = lerp_angle(rotation, ((get_global_mouse_position() - position).angle()), 0.1)
|
2025-08-27 19:59:05 +08:00
|
|
|
position = launcher.texture.global_position
|
|
|
|
|
func applyDot():
|
|
|
|
|
hitbox.disabled = true
|
|
|
|
|
await TickTool.millseconds(50)
|
|
|
|
|
hitbox.disabled = false
|
|
|
|
|
await TickTool.millseconds(50)
|
2025-08-28 12:34:41 +08:00
|
|
|
BulletBase.generate(
|
|
|
|
|
preload("res://components/Bullets/LaserPluse.tscn"),
|
|
|
|
|
launcher,
|
|
|
|
|
position,
|
|
|
|
|
rotation
|
|
|
|
|
)
|
2025-08-27 19:59:05 +08:00
|
|
|
return true
|