From d8fcc8eb38e793e048fb44668f154598d5b5bf42 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, 12 Dec 2025 22:18:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(Shield):=20=E6=B7=BB=E5=8A=A0=E7=A2=B0?= =?UTF-8?q?=E6=92=9E=E4=BC=98=E5=85=88=E7=BA=A7=E5=92=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=AD=90=E8=8A=82=E7=82=B9=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为Shield组件添加collision_priority属性并调整staticBackground和hurtbox节点的位置,以改进碰撞检测和视觉效果 --- components/Summons/Shield.tscn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/Summons/Shield.tscn b/components/Summons/Shield.tscn index 46d2047..a8e9b8e 100644 --- a/components/Summons/Shield.tscn +++ b/components/Summons/Shield.tscn @@ -34,12 +34,16 @@ shader_parameter/alpha = 0.2999999932944 radius = 150.0 [node name="Sheild" instance=ExtResource("1_xnsmi")] +collision_priority = 2.0 script = ExtResource("2_1x6ja") attraction = 0.0 [node name="texture" parent="." index="3"] sprite_frames = SubResource("SpriteFrames_1x6ja") +[node name="staticBackground" parent="texture" index="0"] +position = Vector2(0, 50) + [node name="circle" type="Node2D" parent="texture/staticBackground" index="0"] material = SubResource("ShaderMaterial_ddbxg") script = ExtResource("4_cg4js") @@ -54,6 +58,9 @@ size = Vector2(300, 300) color = Color(1, 0.76694965, 0, 1) metadata/_custom_type_script = "uid://cgb01lelfg73p" +[node name="hurtbox" parent="texture" index="2"] +position = Vector2(0, 50) + [node name="hitbox" parent="texture/hurtbox" index="0"] shape = SubResource("CircleShape2D_ddbxg")