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

feat(武器系统): 调整武器冷却时间并改进子弹轨迹效果

- 将Tree武器的冷却时间从500ms减少到200ms以提升攻击频率
- 修改CycleTimer子弹轨迹计算,增加垂直偏移和缩放效果
This commit is contained in:
2026-03-18 06:49:11 +08:00
parent 44ebd1b450
commit 238450bf11
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ func apply():
bullets = bullets.filter(is_instance_valid)
for index in len(bullets):
var bullet = bullets[index]
bullet.position = bullet.launcher.position + Vector2.from_angle(periodPercent(index)) * distance
var offset = Vector2.from_angle(periodPercent(index))
offset.y *= 0.5
bullet.position = bullet.launcher.position + offset * distance
bullet.scale = Vector2.ONE * (1 + offset.y)
func host(bullet: BulletBase):
bullets.append(bullet)