1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-10 21:57:12 +08:00

feat(武器系统): 添加武器来源显示功能并优化光标刀碰撞

- 在武器卡片中添加来源显示标签和数组字段
- 将光标刀的碰撞形状从矩形改为线段
- 为光标刀添加命中时的击退效果
- 优化场景文件格式和节点唯一ID
This commit is contained in:
2026-04-04 08:55:15 +08:00
parent d4598e113d
commit 93fdb8e2b8
4 changed files with 57 additions and 38 deletions
+12 -14
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=16 format=3 uid="uid://cxjsajua2a82n"]
[gd_scene format=3 uid="uid://cxjsajua2a82n"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_epcdw"]
[ext_resource type="Script" uid="uid://c337id4kvvj58" path="res://scripts/Contents/Bullets/CursorKnife.gd" id="2_glt8o"]
@@ -133,10 +133,11 @@ scale_curve = SubResource("CurveTexture_t6dk8")
color_initial_ramp = SubResource("GradientTexture1D_ioc4f")
alpha_curve = SubResource("CurveTexture_3757w")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_epcdw"]
size = Vector2(126, 388)
[sub_resource type="SegmentShape2D" id="SegmentShape2D_r4tbf"]
a = Vector2(0, -80)
b = Vector2(0, 80)
[node name="CursorKnife" instance=ExtResource("1_epcdw")]
[node name="CursorKnife" unique_id=736659683 instance=ExtResource("1_epcdw")]
script = ExtResource("2_glt8o")
speed = 5.0
penerate = 1.0
@@ -145,21 +146,18 @@ autoSpawnAnimation = true
autoDestroyOnHitMap = false
autoPlayTexture = true
freeAfterSpawn = true
knockback = 10.0
[node name="texture" parent="." index="0"]
[node name="texture" parent="." index="0" unique_id=162977358]
position = Vector2(-33, 4)
rotation = -0.6813664
scale = Vector2(1e-05, 1e-05)
sprite_frames = SubResource("SpriteFrames_vdv8l")
frame_progress = 1.0
[node name="animator" parent="texture" index="0"]
libraries = {
&"": SubResource("AnimationLibrary_t6dk8")
}
[node name="animator" parent="texture" index="0" unique_id=1114087117]
libraries/ = SubResource("AnimationLibrary_t6dk8")
[node name="trail" type="GPUParticles2D" parent="texture" index="1"]
[node name="trail" type="GPUParticles2D" parent="texture" index="1" unique_id=1234210493]
z_index = -1
position = Vector2(28.85057, 31.122555)
rotation = 0.6806784
@@ -167,6 +165,6 @@ amount = 100
preprocess = 1.0
process_material = SubResource("ParticleProcessMaterial_aqt0q")
[node name="hitbox" parent="." index="1"]
position = Vector2(45, 30)
shape = SubResource("RectangleShape2D_epcdw")
[node name="hitbox" parent="." index="1" unique_id=175349408]
position = Vector2(40, 0)
shape = SubResource("SegmentShape2D_r4tbf")