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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user