onLockDown

This commit is contained in:
2023-07-10 23:31:51 +02:00
parent bf4b296ec0
commit 8279b1188f
2 changed files with 8 additions and 3 deletions

2
app.js
View File

@@ -72,7 +72,7 @@ let game = {
generate: function(nextPiece=nextQueue.shift()) {
nextPiece.lockDelay = stats.lockDelay
matrix.piece = nextPiece
matrix.piece.onlockdown = game.lockDown
matrix.piece.onLockDown = game.lockDown
if (matrix.piece.canMove(TRANSLATION.NONE)) {
scheduler.setInterval(game.fall, stats.fallPeriod)