1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00

feat: 更新多个组件,调整动画、显示名称和参数,优化游戏体验

This commit is contained in:
2025-08-27 18:56:55 +08:00
parent 266947df0d
commit 561e12398a
11 changed files with 60 additions and 25 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
extends BulletBase
class_name Diamond
const traceTime = 1000
const traceTime = 2000
func ai():
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.2 * ((traceTime - timeLived()) / traceTime))
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
canDamageSelf = !(timeLived() >= traceTime)
forward(Vector2.from_angle(rotation))