mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-10 03:52:53 +08:00
fix: 修改测试模式和子弹碰撞逻辑
在测试模式下使用正式关卡数据而非玩笑数据 添加子弹碰撞时发射器后坐力效果
This commit is contained in:
@@ -29,6 +29,7 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
|
|||||||
eff.rotation = position.angle_to_point(bullet.position)
|
eff.rotation = position.angle_to_point(bullet.position)
|
||||||
eff.shot()
|
eff.shot()
|
||||||
CameraManager.shake(200, 250)
|
CameraManager.shake(200, 250)
|
||||||
|
launcher.position -= (bullet.position - position).normalized() * 50
|
||||||
# 摧毁其他子弹
|
# 摧毁其他子弹
|
||||||
bullet.tryDestroy()
|
bullet.tryDestroy()
|
||||||
var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100)
|
var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ static var WAVE_JUSTJOKE = [
|
|||||||
Wave.create("Kernyr", 0, 0, true, 0, INF, 1),
|
Wave.create("Kernyr", 0, 0, true, 0, INF, 1),
|
||||||
]
|
]
|
||||||
static var WAVE_EMPTY = []
|
static var WAVE_EMPTY = []
|
||||||
static var data = WAVE_NORMAL if WorldManager.isRelease() else WAVE_JUSTJOKE
|
static var data = WAVE_NORMAL if WorldManager.isRelease() else WAVE_NORMAL
|
||||||
|
|
||||||
static func create(
|
static func create(
|
||||||
entity_: String,
|
entity_: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user