mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-03 09:51:53 +08:00
feat(战斗系统): 增强激光武器效果并添加击退机制
- 增加BigLaser的伤害值和能量消耗 - 为子弹添加击退效果和生成后自动释放功能 - 修改LaserPluse的动画参数并添加锁定发射器脚本 - 调整敌人受击时的能量获取和击退效果 - 更新波次生成配置
This commit is contained in:
@@ -12,4 +12,10 @@ func applyDot():
|
||||
await TickTool.millseconds(50)
|
||||
hitbox.disabled = false
|
||||
await TickTool.millseconds(50)
|
||||
BulletBase.generate(
|
||||
preload("res://components/Bullets/LaserPluse.tscn"),
|
||||
launcher,
|
||||
position,
|
||||
rotation
|
||||
)
|
||||
return true
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
extends BulletBase
|
||||
class_name LockLauncher
|
||||
|
||||
enum PositionType {
|
||||
SELF,
|
||||
TEXTURE,
|
||||
}
|
||||
|
||||
@export var target: PositionType = PositionType.SELF
|
||||
|
||||
func ai():
|
||||
if target == PositionType.SELF:
|
||||
position = launcher.position
|
||||
else:
|
||||
position = launcher.texture.global_position
|
||||
rotation = launcher.rotation
|
||||
Reference in New Issue
Block a user