From 949b957696b9c52bcfd0fc41b933667fe91714e9 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:19:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(Bullets):=20=E4=BF=AE=E6=94=B9SevenSoul?= =?UTF-8?q?=E5=AD=90=E5=BC=B9=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=90=E5=BC=B9=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原本生成一个WhiteSoul子弹改为生成两个,均匀分布在360度范围内 --- scripts/Contents/Bullets/SevenSoul.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Contents/Bullets/SevenSoul.gd b/scripts/Contents/Bullets/SevenSoul.gd index ffe7bd5..9cb7c21 100644 --- a/scripts/Contents/Bullets/SevenSoul.gd +++ b/scripts/Contents/Bullets/SevenSoul.gd @@ -25,8 +25,11 @@ func ai(): func applyDot(): if timeLived() > 20000 * ((6.0 - index) / 6.0): if !spawnedChild: - BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), launcher, heart.global_position, rotation) spawnedChild = true + var count = 7 + for i in count: + BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), launcher, heart.global_position, rotation + deg_to_rad(360.0 / count * i)) + await TickTool.millseconds(50) BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position())) await TickTool.millseconds(100) return true