From 4a33c420bbbc7548505d09e7d72e318d01cdecb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Fri, 26 Sep 2025 22:15:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(Bullets):=20=E8=B0=83=E6=95=B4WhiteSoul?= =?UTF-8?q?=E5=AD=90=E5=BC=B9=E9=80=9F=E5=BA=A6=E5=A2=9E=E9=95=BF=E7=8E=87?= =?UTF-8?q?=E5=92=8C=E6=B7=BB=E5=8A=A0=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将速度增长率从1.1降低至1.05以平衡游戏难度 为WhiteSoul子弹添加lifeTime属性防止内存泄漏 --- components/Bullets/WhiteSoul.tscn | 1 + scripts/Contents/Bullets/WhiteSoul.gd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Bullets/WhiteSoul.tscn b/components/Bullets/WhiteSoul.tscn index 1100df5..48633f0 100644 --- a/components/Bullets/WhiteSoul.tscn +++ b/components/Bullets/WhiteSoul.tscn @@ -45,6 +45,7 @@ alpha_curve = SubResource("CurveTexture_bd63g") texture_filter = 1 script = ExtResource("2_ld7n7") speed = 1.0 +lifeTime = 1000.0 [node name="texture" parent="." index="0"] rotation = -1.5708 diff --git a/scripts/Contents/Bullets/WhiteSoul.gd b/scripts/Contents/Bullets/WhiteSoul.gd index 7f166c3..02b8f04 100644 --- a/scripts/Contents/Bullets/WhiteSoul.gd +++ b/scripts/Contents/Bullets/WhiteSoul.gd @@ -3,6 +3,6 @@ extends BulletBase func register(): speed = 1 func ai(): - speed *= 1.1 + speed *= 1.05 damage = speed PresetBulletAI.forward(self, rotation)