1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(角色): 调整熊角色的冲刺速度和攻击动画

增加熊角色的冲刺倍率从50到60,优化冲刺移动逻辑使其更稳定
修正熊角色攻击动画的时间点和轨迹点,使动画更流畅
This commit is contained in:
2025-09-13 20:43:05 +08:00
parent d938242081
commit 3c1f89f807
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ func register():
attackCooldownMap[1] = 10000
attackCooldownMap[2] = 8000
attackCooldownMap[3] = 13000
sprintMultiplier = 50
sprintMultiplier = 60
func spawn():
texture.play("walk")
func ai():
@@ -50,4 +50,4 @@ func attack(type):
return false
return true
func sprint():
move((currentFocusedBoss.position - position).normalized() * sprintMultiplier * Vector2(1, 0), true)
move(Vector2(sign((currentFocusedBoss.position - position).x * sprintMultiplier), 0), true)