1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BigLaser.gd
T
fallingshrimp 174f24e3fe feat(子弹系统): 更新激光子弹效果和属性
- 将BigLaser的父场景从LaserCommoner改为LaserSummoner
- 增加激光震动强度从100到150
- 移除succeedToHit方法的伤害加成效果
- 更新激光粒子效果和材质参数
- 修改水杯和蛋糕的字段属性
- 优化调试组件FeedHasField的目标字段
- 更新激光圆圈SVG资源
2025-08-29 09:17:15 +08:00

17 lines
731 B
GDScript

extends BulletBase
class_name BigLaser # 这个子弹是玩家的超级武器,耗能高,dps也高
func spawn():
CameraManager.shake(5000, 150) # 激光会运行5秒(5000毫秒),期间震屏超高强度
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(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
hitbox.disabled = false
await TickTool.millseconds(100 / launcher.fields[FieldStore.Entity.ATTACK_SPEED])
return true