mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-29 06:52:29 +08:00
feat(武器系统): 添加神手玉武器并完善格挡机制
添加新武器"神手玉",实现不同类型的攻击格挡效果: - 近战挥舞:化解伤害 - 近战戳刺:反弹伤害并击退 - 远程射弹:概率弹反 - 猛冲攻击:反弹速度 - 吐息攻击:产生击退 - 魔法/召唤攻击:少量储能 调整Parry.gd的相机震动参数,增加BulletBase的MotionType枚举值STAB,完善Parrier.gd对不同攻击类型的处理逻辑。同时添加Debug测试boss选项,修复AcidS.gd的缩进问题。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://clr5pbkifgear"]
|
||||
[gd_scene format=3 uid="uid://clr5pbkifgear"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_qpsi6"]
|
||||
[ext_resource type="Script" uid="uid://dl7d0v7f2uute" path="res://scripts/Contents/Bullets/AcidStorm.gd" id="2_daxsl"]
|
||||
@@ -104,22 +104,21 @@ _data = {
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_daxsl"]
|
||||
radius = 59.008472
|
||||
|
||||
[node name="AcidStorm" instance=ExtResource("1_qpsi6")]
|
||||
[node name="AcidStorm" unique_id=61904763 instance=ExtResource("1_qpsi6")]
|
||||
script = ExtResource("2_daxsl")
|
||||
speed = 2.5
|
||||
motionType = 3
|
||||
penerate = 1.0
|
||||
autoSpawnAnimation = true
|
||||
freeAfterSpawn = true
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
[node name="texture" parent="." index="0" unique_id=162977358]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
sprite_frames = SubResource("SpriteFrames_daxsl")
|
||||
|
||||
[node name="animator" parent="texture" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_5atmc")
|
||||
}
|
||||
[node name="animator" parent="texture" index="0" unique_id=1114087117]
|
||||
libraries/ = SubResource("AnimationLibrary_5atmc")
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
||||
shape = SubResource("CircleShape2D_daxsl")
|
||||
disabled = true
|
||||
|
||||
@@ -68,6 +68,18 @@ tracks/4/keys = {
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("%texture/..:motionType")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_nqryj"]
|
||||
resource_name = "destroy"
|
||||
@@ -203,6 +215,18 @@ tracks/7/keys = {
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/8/type = "value"
|
||||
tracks/8/imported = false
|
||||
tracks/8/enabled = true
|
||||
tracks/8/path = NodePath("%texture/..:motionType")
|
||||
tracks/8/interp = 1
|
||||
tracks/8/loop_wrap = true
|
||||
tracks/8/keys = {
|
||||
"times": PackedFloat32Array(0, 1.7),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 6]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ccsa1"]
|
||||
_data = {
|
||||
|
||||
@@ -55,6 +55,18 @@ tracks/3/keys = {
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("%texture/..:motionType")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_oinqg"]
|
||||
resource_name = "destroy"
|
||||
@@ -151,6 +163,18 @@ tracks/5/keys = {
|
||||
"method": &"generateShadow"
|
||||
}]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("%texture/..:motionType")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 1.45),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [6, 0, 6]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_w1utg"]
|
||||
_data = {
|
||||
@@ -186,8 +210,8 @@ texture = ExtResource("2_wwxm2")
|
||||
[node name="audio" type="AudioStreamPlayer2D" parent="texture/anchor/textureSword" index="0" unique_id=167399724]
|
||||
|
||||
[node name="hitbox" parent="." index="1" unique_id=175349408 node_paths=PackedStringArray("target")]
|
||||
position = Vector2(150, 0)
|
||||
rotation = 1.5707964
|
||||
position = Vector2(299.99997, 0.1221919)
|
||||
rotation = 0.00040731629
|
||||
shape = SubResource("CircleShape2D_1sgli")
|
||||
script = ExtResource("7_1sgli")
|
||||
target = NodePath("../texture/anchor/textureSword")
|
||||
|
||||
Reference in New Issue
Block a user