Improved level cap

This commit is contained in:
Arnaud Vergnet 2020-03-17 11:12:55 +01:00
parent 879ae46abe
commit 7a00452cc0

View file

@ -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() {