mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
31426987a2
- 增加BigLaser的伤害值和能量消耗 - 为子弹添加击退效果和生成后自动释放功能 - 修改LaserPluse的动画参数并添加锁定发射器脚本 - 调整敌人受击时的能量获取和击退效果 - 更新波次生成配置
22 lines
526 B
GDScript
22 lines
526 B
GDScript
extends BulletBase
|
|
class_name BigLaser
|
|
|
|
func spawn():
|
|
CameraManager.shake(5000)
|
|
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
|