disable first held piece
This commit is contained in:
parent
ab023ec982
commit
5d451db8f9
14
js/app.js
14
js/app.js
@ -19,10 +19,10 @@ window.onload = function(event) {
|
|||||||
function restart() {
|
function restart() {
|
||||||
stats.modal.hide()
|
stats.modal.hide()
|
||||||
holdQueue.init()
|
holdQueue.init()
|
||||||
|
holdQueue.redraw()
|
||||||
stats.init()
|
stats.init()
|
||||||
matrix.init()
|
matrix.init()
|
||||||
nextQueue.init()
|
nextQueue.init()
|
||||||
nextQueue.redraw()
|
|
||||||
settings.init()
|
settings.init()
|
||||||
pauseSettings()
|
pauseSettings()
|
||||||
}
|
}
|
||||||
@ -132,13 +132,13 @@ let playerActions = {
|
|||||||
if (matrix.piece.holdEnabled) {
|
if (matrix.piece.holdEnabled) {
|
||||||
scheduler.clearInterval(fall)
|
scheduler.clearInterval(fall)
|
||||||
scheduler.clearTimeout(lockDown)
|
scheduler.clearTimeout(lockDown)
|
||||||
|
|
||||||
matrix.piece.facing = FACING.NORTH
|
let piece = matrix.piece
|
||||||
matrix.piece.locked = false
|
generate(holdQueue.piece)
|
||||||
matrix.piece.holdEnabled = false
|
matrix.piece.holdEnabled = false
|
||||||
let heldPiece = holdQueue.piece
|
piece.facing = FACING.NORTH
|
||||||
holdQueue.piece = matrix.piece
|
piece.locked = false
|
||||||
generate(heldPiece)
|
holdQueue.piece = piece
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user