don't tick towers in play/game over state
This commit is contained in:
parent
818971ccdb
commit
87aea4bd6f
6
index.js
6
index.js
@ -603,7 +603,11 @@ window.onload = function () {
|
|||||||
fpsDraw = fps
|
fpsDraw = fps
|
||||||
}
|
}
|
||||||
|
|
||||||
tickTowers()
|
// Only tick towers when the game is in the play state
|
||||||
|
if (Game.state === 1) {
|
||||||
|
tickTowers()
|
||||||
|
}
|
||||||
|
|
||||||
updateEnemyMovements()
|
updateEnemyMovements()
|
||||||
tickParticles()
|
tickParticles()
|
||||||
tickSellText()
|
tickSellText()
|
||||||
|
Loading…
Reference in New Issue
Block a user