mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-12 06:37:13 +08:00
feat(武器): 增强格挡武器并添加新特效
增加格挡武器的攻击力从20提升至35 添加冲刺速度随气力增加的机制 为格挡和攻击添加新的视觉特效和音效 调整格挡子弹的碰撞检测形状 优化特效控制器逻辑确保正确释放资源
This commit is contained in:
@@ -1,15 +1,30 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://brt2q316hrswe"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://brt2q316hrswe"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_57y3f"]
|
||||
[ext_resource type="Script" uid="uid://bi7nde2rs0w4m" path="res://scripts/Contents/Bullets/Parrier.gd" id="2_li4th"]
|
||||
[ext_resource type="Texture2D" uid="uid://cajy8iya7achn" path="res://resources/bullets/parrier/造型2.png" id="3_ksxds"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_hu1af"]
|
||||
[sub_resource type="Animation" id="Animation_li4th"]
|
||||
resource_name = "spawn"
|
||||
length = 0.27
|
||||
step = 0.01
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("%texture/..:parryRate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0),
|
||||
"points": PackedFloat32Array(1, -0.25, 0, 0.1, 0, 0, -0.27, 0, 0, 0),
|
||||
"times": PackedFloat32Array(0, 0.27)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ksxds"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale:x")
|
||||
tracks/0/path = NodePath("%texture/..:parryRate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
@@ -17,98 +32,16 @@ tracks/0/keys = {
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/1/type = "bezier"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".:scale:y")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath(".:modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/3/type = "bezier"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("%texture/..:parryRate")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ksxds"]
|
||||
resource_name = "spawn"
|
||||
step = 0.1
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale:x")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 2),
|
||||
"points": PackedFloat32Array(0.8, -0.25, 0, 0, 0.5, 0, 0, 0.8, 0, 0),
|
||||
"times": PackedFloat32Array(0, 1)
|
||||
}
|
||||
tracks/1/type = "bezier"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".:scale:y")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"handle_modes": PackedInt32Array(2, 2),
|
||||
"points": PackedFloat32Array(0.8, 0, 0, 0, 0.5, 0, 0, 0.8, 0, 0),
|
||||
"times": PackedFloat32Array(0, 1)
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath(".:modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2, 0.5, 1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/3/type = "bezier"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("%texture/..:parryRate")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"handle_modes": PackedInt32Array(2, 2),
|
||||
"points": PackedFloat32Array(1, 0, 0, 0.1, 0, 0, -1, 0, 0, 0),
|
||||
"times": PackedFloat32Array(0, 1)
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_k4ctn"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_hu1af"),
|
||||
&"spawn": SubResource("Animation_ksxds")
|
||||
&"RESET": SubResource("Animation_ksxds"),
|
||||
&"spawn": SubResource("Animation_li4th")
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_57y3f"]
|
||||
size = Vector2(54, 204)
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_li4th"]
|
||||
radius = 60.0
|
||||
height = 200.0
|
||||
|
||||
[node name="Parrier" instance=ExtResource("1_57y3f")]
|
||||
script = ExtResource("2_li4th")
|
||||
@@ -119,17 +52,15 @@ autoSpawnAnimation = true
|
||||
freeAfterSpawn = true
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
scale = Vector2(1e-05, 1e-05)
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
scale = Vector2(0.8, 0.8)
|
||||
|
||||
[node name="animator" parent="texture" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_k4ctn")
|
||||
}
|
||||
|
||||
[node name="anchor" type="Sprite2D" parent="texture" index="1"]
|
||||
position = Vector2(96, -4)
|
||||
texture = ExtResource("3_ksxds")
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
position = Vector2(95, 0)
|
||||
shape = SubResource("RectangleShape2D_57y3f")
|
||||
position = Vector2(100, 0)
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("CapsuleShape2D_li4th")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://cgdnkey2fhla4"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://cgdnkey2fhla4"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bcvuuy2m0pke0" path="res://components/Abstracts/EffectBase.tscn" id="1_vi6cv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cq80y83edetx3" path="res://resources/effects/fooExplosion/Lv1_FooExplosion00.png" id="2_1ukt2"]
|
||||
@@ -15,16 +15,9 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dm4ih65h45qi8" path="res://resources/effects/fooExplosion/Lv1_FooExplosion10.png" id="12_dhm5g"]
|
||||
[ext_resource type="Texture2D" uid="uid://bpr2j2jed4yxm" path="res://resources/effects/fooExplosion/Lv1_FooExplosion11.png" id="13_41cg7"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_1ukt2"]
|
||||
resource_name = "spawn"
|
||||
length = 0.4
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8b1u1"]
|
||||
_data = {
|
||||
&"spawn": SubResource("Animation_1ukt2")
|
||||
}
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kn8g0"]
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8b1u1"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
@@ -75,6 +68,9 @@ spawnTexture = "spawn"
|
||||
[node name="spawn" parent="sounds" index="0"]
|
||||
stream = ExtResource("2_8b1u1")
|
||||
|
||||
[node name="particles" parent="." index="1"]
|
||||
lifetime = 0.01
|
||||
|
||||
[node name="animator" parent="stage" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_8b1u1")
|
||||
@@ -82,6 +78,6 @@ libraries = {
|
||||
|
||||
[node name="texture" parent="stage" index="1"]
|
||||
scale = Vector2(0.4, 0.4)
|
||||
sprite_frames = SubResource("SpriteFrames_kn8g0")
|
||||
sprite_frames = SubResource("SpriteFrames_8b1u1")
|
||||
frame = 11
|
||||
frame_progress = 1.0
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://12ubhs2p8a27"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bcvuuy2m0pke0" path="res://components/Abstracts/EffectBase.tscn" id="1_yftgy"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cegxrhkf6na6t" path="res://resources/effects/parrier/2/2.tres" id="2_7outc"]
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_6cpy3"]
|
||||
|
||||
[node name="Parrier" instance=ExtResource("1_yftgy")]
|
||||
spawnTexture = "spawn"
|
||||
|
||||
[node name="particles" parent="." index="1"]
|
||||
lifetime = 0.01
|
||||
|
||||
[node name="animator" parent="stage" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_6cpy3")
|
||||
}
|
||||
|
||||
[node name="texture" parent="stage" index="1"]
|
||||
position = Vector2(150, 50)
|
||||
scale = Vector2(-0.4, 0.4)
|
||||
sprite_frames = ExtResource("2_7outc")
|
||||
frame = 6
|
||||
frame_progress = 1.0
|
||||
@@ -13,7 +13,7 @@ typeTopic = 3
|
||||
costBeachball = 900
|
||||
oneShoot = true
|
||||
store = {
|
||||
"atk": 20,
|
||||
"atk": 35,
|
||||
"count": 1.0,
|
||||
"max": 3.0
|
||||
}
|
||||
@@ -24,14 +24,14 @@ storeType = {
|
||||
}
|
||||
descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。
|
||||
每成功格挡一次,获得一点[b]气力[/b]。
|
||||
每拥有一点气力,闪避穿过敌人时对其贴上一层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
每拥有一点气力,增加[color=yellow]1[/color]点冲刺初速度,闪避穿过敌人时对其贴上一层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
召唤[b]乾坤剑[/b]穿透敌人。
|
||||
|
||||
乾坤剑造成$atk点伤害,
|
||||
每次格挡最多化解$count个子弹,
|
||||
体内最多储存$max点气力,
|
||||
格挡时机越精确,成功率越高。"
|
||||
cooldown = 0.0
|
||||
cooldown = 250.0
|
||||
debugRebuild = true
|
||||
|
||||
[node name="avatar" parent="container/info" index="0"]
|
||||
@@ -48,10 +48,10 @@ typeTopic = 3
|
||||
[node name="description" parent="container" index="2"]
|
||||
text = "[center]进行[b]格挡[/b],化解飞来的子弹。
|
||||
每成功格挡一次,获得一点[b]气力[/b]。
|
||||
每拥有一点气力,闪避穿过敌人时对其贴上一层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
每拥有一点气力,增加[color=yellow]1[/color]点冲刺初速度,闪避穿过敌人时对其贴上一层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
召唤[b]乾坤剑[/b]穿透敌人。
|
||||
|
||||
乾坤剑造成[color=cyan]20[/color]点伤害,
|
||||
乾坤剑造成[color=cyan]35[/color]点伤害,
|
||||
每次格挡最多化解[color=cyan]1[/color]个子弹,
|
||||
体内最多储存[color=cyan]3[/color]点气力,
|
||||
格挡时机越精确,成功率越高。[/center]"
|
||||
|
||||
Reference in New Issue
Block a user