From 1347d7942370c533b7ae5d6acdce6aa03f3587e9 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: Tue, 18 Nov 2025 22:43:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(Bullets):=20=E8=B0=83=E6=95=B4=E5=BC=93?= =?UTF-8?q?=E7=AE=AD=E6=94=BB=E5=87=BB=E5=8F=82=E6=95=B0=E5=92=8C=E7=A2=B0?= =?UTF-8?q?=E6=92=9E=E5=BD=A2=E7=8A=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改弓箭的等待时间和粒子效果数量,调整箭矢的初始速度和碰撞形状为矩形以更符合实际效果 --- components/Bullets/Arrow.tscn | 11 ++++++----- scripts/Contents/Bullets/Bow.gd | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/Bullets/Arrow.tscn b/components/Bullets/Arrow.tscn index 3a28baa..28de44e 100644 --- a/components/Bullets/Arrow.tscn +++ b/components/Bullets/Arrow.tscn @@ -39,14 +39,15 @@ emission_shape = 1 emission_sphere_radius = 150.0 direction = Vector3(-1, 0, 0) spread = 20.0 -initial_velocity_max = 2500.0 +initial_velocity_max = 1500.0 gravity = Vector3(0, 0, 0) scale_min = 20.0 scale_max = 60.0 color_initial_ramp = SubResource("GradientTexture1D_afwvr") alpha_curve = SubResource("CurveTexture_uu3a4") -[sub_resource type="CircleShape2D" id="CircleShape2D_b2ohg"] +[sub_resource type="RectangleShape2D" id="RectangleShape2D_qddg0"] +size = Vector2(174, 20) [node name="Arrow" instance=ExtResource("1_0wuio")] script = ExtResource("2_qddg0") @@ -71,11 +72,11 @@ process_material = SubResource("ParticleProcessMaterial_afwvr") [node name="fire" type="GPUParticles2D" parent="texture/static" index="1"] position = Vector2(1328.3423, 44.278076) -amount = 300 +amount = 200 preprocess = 1.0 local_coords = true process_material = SubResource("ParticleProcessMaterial_qddg0") [node name="hitbox" parent="." index="1"] -position = Vector2(85, 0) -shape = SubResource("CircleShape2D_b2ohg") +position = Vector2(8, 0) +shape = SubResource("RectangleShape2D_qddg0") diff --git a/scripts/Contents/Bullets/Bow.gd b/scripts/Contents/Bullets/Bow.gd index 112c913..c53eb56 100644 --- a/scripts/Contents/Bullets/Bow.gd +++ b/scripts/Contents/Bullets/Bow.gd @@ -3,7 +3,7 @@ class_name Bow var count: int = 0 var atk: float = 0 -var waitTime: float = 1000 +var waitTime: float = 2000 func spawn(): var startAngle = rotation - deg_to_rad(count * 10.0 / 2)