diff --git a/screens/Tetris/GameLogic.js b/screens/Tetris/GameLogic.js index d951d7f..b94b4e7 100644 --- a/screens/Tetris/GameLogic.js +++ b/screens/Tetris/GameLogic.js @@ -55,7 +55,7 @@ export default class GameLogic { this.gamePaused = false; this.colors = colors; this.autoRepeatActivationDelay = 300; - this.autoRepeatDelay = 100; + this.autoRepeatDelay = 50; } getHeight(): number { @@ -116,7 +116,10 @@ export default class GameLogic { } canLevelUp() { - return this.levelProgression > this.level * 5; + let canLevel = this.levelProgression > this.level * 5; + if (canLevel) + this.levelProgression -= this.level * 5; + return canLevel; } freezeTetromino() {