1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-23 12:02:30 +08:00

feat: 添加能量属性到角色,更新攻击逻辑以消耗能量

This commit is contained in:
2025-08-27 12:46:20 +08:00
parent 23bc9b3e20
commit f764f0b3c9
9 changed files with 28 additions and 18 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func ai():
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
return BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, weaponPos, (get_global_mouse_position() - weaponPos).angle())
func sprint():
move(Vector2(
Input.get_axis("m_left", "m_right"),