mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 08:51:53 +08:00
feat(武器系统): 重构LGBT武器和子弹逻辑
- 修改BulletBase.generate返回子弹实例数组而非数量 - 新增LGBTBoom特效场景 - 降低LGBT武器能量消耗从150降至10 - 移除Rooster角色的攻击方法,改为使用武器系统 - 重构LGBT子弹追踪逻辑,增加追踪时间和效率参数 - 在LGBT武器攻击时设置子弹伤害和追踪目标
This commit is contained in:
@@ -21,13 +21,6 @@ func ai():
|
||||
trySprint()
|
||||
if Input.is_action_just_pressed("heal"):
|
||||
tryHeal(20)
|
||||
func attack(type):
|
||||
if type == 0:
|
||||
var weaponPos = findWeaponAnchor("normal")
|
||||
BulletBase.generate(preload("res://components/Bullets/LGBTBullet.tscn"), self, weaponPos, deg_to_rad(randf_range(0, 360)))
|
||||
elif type == 1:
|
||||
var weaponPos = findWeaponAnchor("normal")
|
||||
return BulletBase.generate(preload("res://components/Bullets/BigLaser.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
|
||||
func sprint():
|
||||
move(Vector2(
|
||||
Input.get_axis("m_left", "m_right"),
|
||||
|
||||
Reference in New Issue
Block a user