Improved level cap
This commit is contained in:
parent
879ae46abe
commit
7a00452cc0
1 changed files with 5 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue