1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-03 09:51:53 +08:00

fix: 修正Diamond子弹的旋转计算,确保追踪效果更平滑;更新Chick角色的生成参数

This commit is contained in:
2025-08-27 15:41:52 +08:00
parent 1a918a7a14
commit a3ae7ae887
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ class_name Diamond
const traceTime = 1000
func ai():
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.2 * (traceTime - timeLived()))
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.2 * ((traceTime - timeLived()) / traceTime))
canDamageSelf = !(timeLived() >= traceTime)
forward(Vector2.from_angle(rotation))
+1 -1
View File
@@ -13,7 +13,7 @@ static var countBoost: float = 0.1 # 每波增加的敌人数量百分比,指
static var data: Array[Wave] = [
# entity, minCount, maxCount, isBoss, from, to, per
create(preload("res://components/Characters/Hen.tscn"), 1, 5, false, 0, INF, 1),
create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 8, INF, 1)
create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 8, INF, 4)
]
static func create(