Fixed a bug with brick being doubled.
This commit is contained in:
1 parent
ac138f4369
commit
8f854091e0
1 file changed
+3
-4
@@ -236,11 +236,10 @@ function TetrisGame(canvasId, linesCounterId, nextBricksCanvasId) {
|
||||
}
|
||||
|
||||
this.board[x][y] = this.bricks[this.currentBrickId];
|
||||
this.currentBrickId = 0;
|
||||
this.currentBrickLoc = 0;
|
||||
this.currentBrickRot = 0;
|
||||
}
|
||||
|
||||
this.currentBrickId = 0;
|
||||
this.currentBrickLoc = 0;
|
||||
this.currentBrickRot = 0;
|
||||
}
|
||||
|
||||
this.moveCurrentBrickDown = function() {
|
||||
|
||||
Reference in new issue
Block a user