1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-22 11:32:30 +08:00

feat(子弹系统): 新增BREATH运动类型并更新相关子弹配置

- 在BulletBase.gd枚举中添加BREATH运动类型
- 为多种子弹场景文件添加motionType属性配置
- 在Parrier.gd中实现BREATH类型的碰撞处理逻辑
- 更新多个子弹场景文件的格式和唯一ID
This commit is contained in:
2026-04-30 06:45:48 +08:00
parent 64f11d75b2
commit 6afc97ba10
10 changed files with 63 additions and 56 deletions
+33 -34
View File
@@ -1,8 +1,34 @@
[gd_scene load_steps=7 format=3 uid="uid://db2cbgyyjpydp"]
[gd_scene format=3 uid="uid://db2cbgyyjpydp"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_cqre5"]
[ext_resource type="PackedScene" uid="uid://dny25qkcvtaa2" path="res://components/Effects/FirePot.tscn" id="3_ybjor"]
[sub_resource type="Animation" id="Animation_ikuic"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%hitbox:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/..:damage")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [10.0]
}
[sub_resource type="Animation" id="Animation_ybjor"]
resource_name = "spawn"
step = 0.05
@@ -44,32 +70,6 @@ tracks/2/keys = {
"values": [15.0, 0.0]
}
[sub_resource type="Animation" id="Animation_ikuic"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("%hitbox:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("%texture/..:damage")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [10.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ikuic"]
_data = {
&"RESET": SubResource("Animation_ikuic"),
@@ -79,19 +79,18 @@ _data = {
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4qcsn"]
size = Vector2(10, 100)
[node name="FireScan" instance=ExtResource("1_cqre5")]
[node name="FireScan" unique_id=1266932369 instance=ExtResource("1_cqre5")]
displayName = "雪葬"
motionType = 2
penerate = 1.0
autoSpawnAnimation = true
freeAfterSpawn = true
metadata/_edit_vertical_guides_ = [488.0]
[node name="animator" parent="texture" index="0"]
libraries = {
&"": SubResource("AnimationLibrary_ikuic")
}
[node name="animator" parent="texture" parent_id_path=PackedInt32Array(162977358) index="0" unique_id=1114087117]
libraries/ = SubResource("AnimationLibrary_ikuic")
[node name="hitbox" parent="." index="1"]
[node name="hitbox" parent="." index="1" unique_id=175349408]
shape = SubResource("RectangleShape2D_4qcsn")
[node name="firePot" parent="." index="2" instance=ExtResource("3_ybjor")]
[node name="firePot" parent="." index="2" unique_id=897032100 instance=ExtResource("3_ybjor")]