mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-28 06:22:40 +08:00
fix(Bullets): 调整WhiteSoul子弹速度增长率和添加生命周期
将速度增长率从1.1降低至1.05以平衡游戏难度 为WhiteSoul子弹添加lifeTime属性防止内存泄漏
This commit is contained in:
@@ -45,6 +45,7 @@ alpha_curve = SubResource("CurveTexture_bd63g")
|
|||||||
texture_filter = 1
|
texture_filter = 1
|
||||||
script = ExtResource("2_ld7n7")
|
script = ExtResource("2_ld7n7")
|
||||||
speed = 1.0
|
speed = 1.0
|
||||||
|
lifeTime = 1000.0
|
||||||
|
|
||||||
[node name="texture" parent="." index="0"]
|
[node name="texture" parent="." index="0"]
|
||||||
rotation = -1.5708
|
rotation = -1.5708
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ extends BulletBase
|
|||||||
func register():
|
func register():
|
||||||
speed = 1
|
speed = 1
|
||||||
func ai():
|
func ai():
|
||||||
speed *= 1.1
|
speed *= 1.05
|
||||||
damage = speed
|
damage = speed
|
||||||
PresetBulletAI.forward(self, rotation)
|
PresetBulletAI.forward(self, rotation)
|
||||||
|
|||||||
Reference in New Issue
Block a user