mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-22 19:42:30 +08:00
feat(武器/特效): 新增扶桑元神武器及爆炸特效
添加扶桑元神武器相关资源及功能实现,包括: - 新增武器图标、描述和属性配置 - 实现格挡子弹并生成乾坤剑的逻辑 - 添加符咒爆炸特效及相关动画资源 - 调整乾坤剑伤害值和生成位置 - 优化武器特效控制器支持纹理动画
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bcvuuy2m0pke0"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bcvuuy2m0pke0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://0iwnvhdh645p" path="res://scripts/Statemachine/EffectController.gd" id="1_pt2rk"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7cv4k"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_44wuf"]
|
||||
animations = [{
|
||||
"frames": [],
|
||||
"loop": true,
|
||||
"name": &"spawn",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="EffectBase" type="Node2D"]
|
||||
z_index = 1
|
||||
script = ExtResource("1_pt2rk")
|
||||
@@ -29,3 +37,9 @@ color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="animator" type="AnimationPlayer" parent="stage"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="texture" type="AnimatedSprite2D" parent="stage"]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(50, 50)
|
||||
sprite_frames = SubResource("SpriteFrames_44wuf")
|
||||
animation = &"spawn"
|
||||
|
||||
@@ -122,7 +122,7 @@ size = Vector2(146, 26)
|
||||
[node name="QKSword" instance=ExtResource("1_1ke2b")]
|
||||
script = ExtResource("2_x26jp")
|
||||
speed = 20.0
|
||||
baseDamage = 20.0
|
||||
baseDamage = 25.0
|
||||
penerate = 1.0
|
||||
penerateDamageReduction = 0.2
|
||||
lifeTime = 3000.0
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
[gd_scene load_steps=18 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"]
|
||||
[ext_resource type="AudioStream" uid="uid://dkm4rld5hsevd" path="res://resources/sounds/effect/baozha.mp3" id="2_8b1u1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cehkdqa85b0ad" path="res://resources/effects/fooExplosion/Lv1_FooExplosion01.png" id="3_8b1u1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2pg5hqpe2cp2" path="res://resources/effects/fooExplosion/Lv1_FooExplosion02.png" id="4_5pi6y"]
|
||||
[ext_resource type="Texture2D" uid="uid://bykjgvhsf2dsu" path="res://resources/effects/fooExplosion/Lv1_FooExplosion03.png" id="5_k87jx"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0uq64amohrs7" path="res://resources/effects/fooExplosion/Lv1_FooExplosion04.png" id="6_arn3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2ywi78d7lg21" path="res://resources/effects/fooExplosion/Lv1_FooExplosion05.png" id="7_7ocvl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bihj346dfshj3" path="res://resources/effects/fooExplosion/Lv1_FooExplosion06.png" id="8_qdlyj"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1b3gnamtn2rn" path="res://resources/effects/fooExplosion/Lv1_FooExplosion07.png" id="9_bcn35"]
|
||||
[ext_resource type="Texture2D" uid="uid://bo7cih0s2hx3g" path="res://resources/effects/fooExplosion/Lv1_FooExplosion08.png" id="10_4wpfv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgisg4urhvrah" path="res://resources/effects/fooExplosion/Lv1_FooExplosion09.png" id="11_pg82r"]
|
||||
[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"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_1ukt2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_8b1u1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_5pi6y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_k87jx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_arn3m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_7ocvl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_qdlyj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_bcn35")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_4wpfv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_pg82r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_dhm5g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_41cg7")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"spawn",
|
||||
"speed": 30.0
|
||||
}]
|
||||
|
||||
[node name="Foo" instance=ExtResource("1_vi6cv")]
|
||||
spawnSound = "spawn"
|
||||
spawnTexture = "spawn"
|
||||
|
||||
[node name="spawn" parent="sounds" index="0"]
|
||||
stream = ExtResource("2_8b1u1")
|
||||
|
||||
[node name="animator" parent="stage" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_8b1u1")
|
||||
}
|
||||
|
||||
[node name="texture" parent="stage" index="1"]
|
||||
scale = Vector2(0.4, 0.4)
|
||||
sprite_frames = SubResource("SpriteFrames_kn8g0")
|
||||
frame = 11
|
||||
frame_progress = 1.0
|
||||
@@ -1,9 +1,51 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cx7nogfnv7s8t"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cx7nogfnv7s8t"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_0lbwr"]
|
||||
[ext_resource type="Script" uid="uid://bqdyhwcd4jwmj" path="res://scripts/Contents/Weapons/Tree.gd" id="2_jsuc8"]
|
||||
[ext_resource type="Texture2D" uid="uid://74n7umby4d4w" path="res://resources/weapons/ParryCounter.png" id="3_nwamk"]
|
||||
|
||||
[node name="Tree" instance=ExtResource("1_0lbwr")]
|
||||
script = ExtResource("2_jsuc8")
|
||||
avatarTexture = ExtResource("3_nwamk")
|
||||
displayName = "扶桑元神"
|
||||
quality = 4
|
||||
costBeachball = 900
|
||||
oneShoot = true
|
||||
store = {
|
||||
"atk": 10,
|
||||
"count": 1.0,
|
||||
"foo": 1.0
|
||||
}
|
||||
storeType = {
|
||||
"atk": 1,
|
||||
"count": 1,
|
||||
"foo": 1
|
||||
}
|
||||
descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。
|
||||
每成功格挡一次,获得一点[b]气力[/b]。
|
||||
每拥有一点气力,闪避穿过敌人时对其贴上$foo层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
召唤[b]乾坤剑[/b]穿透敌人。
|
||||
|
||||
乾坤剑造成$atk点伤害,
|
||||
每次格挡最多化解$count个子弹。"
|
||||
cooldown = 0.0
|
||||
debugRebuild = true
|
||||
|
||||
[node name="avatar" parent="container/info" index="0"]
|
||||
texture = ExtResource("3_nwamk")
|
||||
|
||||
[node name="beachball" parent="container/info/infos" index="1"]
|
||||
count = 900
|
||||
|
||||
[node name="name" parent="container/info" index="2"]
|
||||
displayName = "扶桑元神"
|
||||
quality = 4
|
||||
|
||||
[node name="description" parent="container" index="2"]
|
||||
text = "[center]进行[b]格挡[/b],化解飞来的子弹。
|
||||
每成功格挡一次,获得一点[b]气力[/b]。
|
||||
每拥有一点气力,闪避穿过敌人时对其贴上[color=cyan]1[/color]层[b]符咒[/b],一段时间后符咒自动引爆,
|
||||
召唤[b]乾坤剑[/b]穿透敌人。
|
||||
|
||||
乾坤剑造成[color=cyan]10[/color]点伤害,
|
||||
每次格挡最多化解[color=cyan]1[/color]个子弹。[/center]"
|
||||
|
||||
Reference in New Issue
Block a user