mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-02 09:21:54 +08:00
feat(战斗系统): 实现弹反效果并调整相关参数
- 新增Parry效果控制器及关联资源 - 为EffectController添加beforeShot钩子方法 - 调整Parrier子弹的碰撞形状和动画时长 - 实现弹反成功时的击退效果和视觉反馈 - 修改默认波次配置用于测试
This commit is contained in:
@@ -20,6 +20,7 @@ func _physics_process(_delta):
|
||||
if lockTexture:
|
||||
texture.global_rotation = 0
|
||||
func shot():
|
||||
beforeShot()
|
||||
var childParticle = particles.duplicate() as GPUParticles2D
|
||||
childParticle.emitting = true
|
||||
add_child(childParticle)
|
||||
@@ -48,6 +49,8 @@ func shot():
|
||||
|
||||
func register():
|
||||
pass
|
||||
func beforeShot():
|
||||
pass
|
||||
|
||||
static func create(scene: PackedScene, spawnPosition: Vector2, parent: Node = null) -> EffectController:
|
||||
var cloned = scene.instantiate() as EffectController
|
||||
|
||||
Reference in New Issue
Block a user