1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BigLaser.gd
T

22 lines
531 B
GDScript
Raw Normal View History

extends BulletBase
class_name BigLaser
func spawn():
CameraManager.shake(5000, 100)
CameraManager.playAnimation("bigLaser")
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)
BulletBase.generate(
preload("res://components/Bullets/LaserPluse.tscn"),
launcher,
position,
rotation
)
return true