mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
feat(武器系统): 调整武器冷却时间并改进子弹轨迹效果
- 将Tree武器的冷却时间从500ms减少到200ms以提升攻击频率 - 修改CycleTimer子弹轨迹计算,增加垂直偏移和缩放效果
This commit is contained in:
@@ -5,4 +5,4 @@
|
||||
|
||||
[node name="Tree" instance=ExtResource("1_0lbwr")]
|
||||
script = ExtResource("2_jsuc8")
|
||||
cooldown = 500.0
|
||||
cooldown = 200.0
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user