onLockDown
This commit is contained in:
2
app.js
2
app.js
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user