mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
feat(角色): 调整熊角色的冲刺速度和攻击动画
增加熊角色的冲刺倍率从50到60,优化冲刺移动逻辑使其更稳定 修正熊角色攻击动画的时间点和轨迹点,使动画更流畅
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user