1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-24 20:42:30 +08:00

feat(战斗系统): 实现弹反效果并调整相关参数

- 新增Parry效果控制器及关联资源
- 为EffectController添加beforeShot钩子方法
- 调整Parrier子弹的碰撞形状和动画时长
- 实现弹反成功时的击退效果和视觉反馈
- 修改默认波次配置用于测试
This commit is contained in:
2026-03-28 11:55:16 +08:00
parent 826df79c45
commit d9a8af529a
9 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ libraries = {
}
[node name="texture" parent="stage" index="1"]
position = Vector2(150, 50)
position = Vector2(200, 50)
scale = Vector2(-0.4, 0.4)
sprite_frames = ExtResource("2_7outc")
frame = 8
+3 -1
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=25 format=3 uid="uid://bwbhxnuhmkwww"]
[gd_scene load_steps=26 format=3 uid="uid://bwbhxnuhmkwww"]
[ext_resource type="PackedScene" uid="uid://bcvuuy2m0pke0" path="res://components/Abstracts/EffectBase.tscn" id="1_vc7s4"]
[ext_resource type="Script" uid="uid://mirrohsweqtb" path="res://scripts/Contents/Effects/Parry.gd" id="2_471em"]
[ext_resource type="Texture2D" uid="uid://bdvyebq7sepqf" path="res://resources/effects/parry/ParrySparkAccurate0.png" id="2_kic6n"]
[ext_resource type="AudioStream" uid="uid://caxopva6lrlm3" path="res://resources/sounds/effect/swordhit.ogg" id="2_l0pl0"]
[ext_resource type="Texture2D" uid="uid://7jhhyoinptns" path="res://resources/items/soul.svg" id="3_buxs5"]
@@ -98,6 +99,7 @@ animations = [{
}]
[node name="Parry" instance=ExtResource("1_vc7s4")]
script = ExtResource("2_471em")
spawnSound = "spawn"
spawnTexture = "spawn"
lockTexture = true