mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
766a894879
调整BigLaser的能量需求从150降至100,同时根据发射者的攻击速度增强伤害
23 lines
725 B
GDScript
23 lines
725 B
GDScript
extends BulletBase
|
|
class_name BigLaser # 这个子弹是玩家的超级武器,耗能高,dps也高
|
|
|
|
func spawn():
|
|
CameraManager.shake(5000, 100) # 激光会运行5秒,期间震屏100强度
|
|
CameraManager.playAnimation("bigLaser")
|
|
fields[FieldStore.Bullet.DAMAGE] *= launcher.fields[FieldStore.Entity.ATTACK_SPEED]
|
|
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
|