better boom-job juggling

This commit is contained in:
minjaesong
2024-02-16 02:55:36 +09:00
parent 693ad05352
commit cac9e947f7
3 changed files with 49 additions and 13 deletions

View File

@@ -46,10 +46,6 @@ open class ActorPrimedBomb(
if (fuse <= 0f && !explosionCalled) {
explosionCalled = true
physProp.usePhysics = false
this.isVisible = false // or play explosion anim
startAudio(boomSound, 10.0)
ExplosionManager.goBoom(
INGAME.world,
@@ -58,7 +54,11 @@ open class ActorPrimedBomb(
explosionPower,
dropProbNonOre,
dropProbOre
) {}
) {
physProp.usePhysics = false
this.isVisible = false // or play explosion anim
startAudio(boomSound, 10.0)
}
}
}