From 40732f2dafab55a246e82b4a54ba188c1d9879c3 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: Sat, 6 Sep 2025 16:55:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=AD=90=E5=BC=B9=E6=95=88=E6=9E=9C):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=B4=AB=E8=89=B2=E6=B0=B4=E6=99=B6=E7=88=86?= =?UTF-8?q?=E7=82=B8=E6=95=88=E6=9E=9C=E7=9A=84=E6=96=B9=E5=90=91=E5=92=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改紫色水晶爆炸效果的方向、扩散角度和初始速度,使其更符合预期效果。同时增加粒子数量,提升视觉效果。 --- components/Effects/PurpleCrystalExplosion.tscn | 10 +++++----- scripts/Contents/Bullets/PurpleCrystal.gd | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/Effects/PurpleCrystalExplosion.tscn b/components/Effects/PurpleCrystalExplosion.tscn index 11cfcc8..9539070 100644 --- a/components/Effects/PurpleCrystalExplosion.tscn +++ b/components/Effects/PurpleCrystalExplosion.tscn @@ -33,9 +33,9 @@ particle_flag_disable_z = true angle_min = 1.07288e-05 angle_max = 360.0 angle_curve = SubResource("CurveTexture_fp3qe") -direction = Vector3(0, -1, 0) -spread = 180.0 -initial_velocity_max = 150.0 +direction = Vector3(-1, 0, 0) +spread = 75.0 +initial_velocity_max = 100.0 gravity = Vector3(0, 0, 0) scale_min = 3.0 scale_max = 8.0 @@ -81,8 +81,8 @@ _data = { [node name="Explosion" instance=ExtResource("1_sqdwd")] -[node name="particles" parent="." index="0"] -amount = 20 +[node name="particles" parent="." index="1"] +amount = 25 process_material = SubResource("ParticleProcessMaterial_w52ko") lifetime = 0.5 diff --git a/scripts/Contents/Bullets/PurpleCrystal.gd b/scripts/Contents/Bullets/PurpleCrystal.gd index f8f82da..a24f4a6 100644 --- a/scripts/Contents/Bullets/PurpleCrystal.gd +++ b/scripts/Contents/Bullets/PurpleCrystal.gd @@ -4,7 +4,9 @@ class_name PurpleCrystal func ai(): PresetAIs.forward(self, rotation) func destroy(_beacuseMap: bool): - EffectController.create(preload("res://components/Effects/PurpleCrystalExplosion.tscn"), global_position).shot() + var eff = EffectController.create(preload("res://components/Effects/PurpleCrystalExplosion.tscn"), global_position) + eff.rotation = rotation + eff.shot() func split(index, total, _last): BulletBase.generate( preload("res://components/Bullets/PurpleCrystal.tscn"),