Compare commits
2 Commits
c0dd5bdc66
...
33ba4ad0b9
Author | SHA1 | Date | |
---|---|---|---|
33ba4ad0b9 | |||
63df324e38 |
9
app.js
9
app.js
@ -607,8 +607,8 @@ function clock() {
|
||||
timeCell.innerText = stats.time
|
||||
}
|
||||
|
||||
function generate(piece=nextQueue.shift()) {
|
||||
matrix.piece = piece
|
||||
function generate(piece) {
|
||||
matrix.piece = piece || nextQueue.shift()
|
||||
|
||||
if (matrix.piece.canMove(TRANSLATION.NONE)) {
|
||||
scheduler.setInterval(fall, stats.fallPeriod)
|
||||
@ -645,14 +645,9 @@ let playerActions = {
|
||||
matrix.piece.holdEnabled = false
|
||||
matrix.piece.locked = false
|
||||
matrix.piece.orientation = ORIENTATION.NORTH
|
||||
if (holdQueue.piece) {
|
||||
let piece = holdQueue.piece
|
||||
holdQueue.piece = matrix.piece
|
||||
generate(piece)
|
||||
} else {
|
||||
holdQueue.piece = matrix.piece
|
||||
generate()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
}
|
||||
|
||||
body {
|
||||
background: linear-gradient(#111315, #012) fixed;
|
||||
background: linear-gradient(#212529, #14171a) fixed;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
|
Loading…
x
Reference in New Issue
Block a user