mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
feat(子弹): 重构小鸡激光攻击并优化子弹行为
- 替换原有Laser为ChickLaser,实现更华丽的激光效果 - 调整FireScan子弹速度和伤害值 - 优化Diamond子弹追踪逻辑和持续时间 - 新增PresetsAI.lockLauncher方法用于固定子弹位置 - 调整Chick角色的攻击冷却时间和攻击距离判定
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
class_name PresetsAI
|
||||
|
||||
static func lockLauncher(bullet: BulletBase, launcher: EntityBase, onTexture: bool = false):
|
||||
bullet.position = launcher.texture.global_position if onTexture else launcher.position
|
||||
static func forward(bullet: BulletBase, rotation: float):
|
||||
bullet.forward(Vector2.from_angle(rotation))
|
||||
static func trace(bullet: BulletBase, target: Vector2, speed: float):
|
||||
bullet.rotation = lerp_angle(
|
||||
bullet.rotation,
|
||||
bullet.position.angle_to_point(target),
|
||||
speed
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user