1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(子弹系统): 新增BREATH运动类型并更新相关子弹配置

- 在BulletBase.gd枚举中添加BREATH运动类型
- 为多种子弹场景文件添加motionType属性配置
- 在Parrier.gd中实现BREATH类型的碰撞处理逻辑
- 更新多个子弹场景文件的格式和唯一ID
This commit is contained in:
2026-04-30 06:45:48 +08:00
parent 64f11d75b2
commit 6afc97ba10
10 changed files with 63 additions and 56 deletions
+3
View File
@@ -57,6 +57,9 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
elif bullet.motionType == BulletBase.MotionType.SPRINT:
bullet.tryDestroy()
bullet.launcher.velocity *= -0.1
elif bullet.motionType == BulletBase.MotionType.BREATH:
bullet.hitbox.disable = true
bullet.launcher.impluse(Vector2.from_angle(bullet.rotation) * -500)
elif bullet.motionType == BulletBase.MotionType.SUMMON || bullet.motionType == BulletBase.MotionType.MAGIC:
launcher.storeEnergy(sqrt(bullet.baseDamage))
var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100)