mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
cf8820d0ec
- 为KukeChild添加重型紫水晶攻击方式并调整治疗量 - 修改KukeMC的攻击逻辑,在低血量时才会召唤子体 - 调整重型紫水晶的属性和动画效果 - 增加子弹生成时的初始速度和加速度
21 lines
489 B
GDScript
21 lines
489 B
GDScript
extends BulletBase
|
|
|
|
@onready var trail: GPUParticles2D = $"%trail"
|
|
@onready var track: Node2D = $"%track"
|
|
|
|
var readyTime: float = 1000
|
|
|
|
func register():
|
|
speed = -10
|
|
func spawn():
|
|
trail.emitting = false
|
|
func ai():
|
|
if timeLived() < readyTime:
|
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
|
rotation = launcher.position.angle_to_point(launcher.currentFocusedBoss.position)
|
|
else:
|
|
PresetBulletAI.forward(self, rotation)
|
|
speed += 2
|
|
trail.emitting = true
|
|
track.visible = false
|