Fix explosion animation
This commit is contained in:
parent
45c05855fa
commit
56e3a90847
1 changed files with 2 additions and 1 deletions
|
@ -271,7 +271,8 @@ class GameViewModel(
|
|||
suspend fun gameOver() {
|
||||
levelFacade.run {
|
||||
analyticsManager.sentEvent(Analytics.GameOver(clock.time(), getScore()))
|
||||
val delayMillis = explosionDelay() / levelFacade.mines.count().coerceAtLeast(10)
|
||||
val explosionTime = (explosionDelay() / levelFacade.mines.count().coerceAtLeast(10))
|
||||
val delayMillis = explosionTime.coerceAtLeast(25L)
|
||||
|
||||
findExplodedMine()?.let { exploded ->
|
||||
takeExplosionRadius(exploded).forEach {
|
||||
|
|
Loading…
Reference in a new issue