Compare commits

..

2 Commits

Author SHA1 Message Date
33ba4ad0b9 hold 2023-04-23 03:40:11 +02:00
63df324e38 classier background 2023-04-23 01:45:09 +02:00
2 changed files with 6 additions and 11 deletions

15
app.js
View File

@ -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()
}
let piece = holdQueue.piece
holdQueue.piece = matrix.piece
generate(piece)
}
},

View File

@ -3,7 +3,7 @@
}
body {
background: linear-gradient(#111315, #012) fixed;
background: linear-gradient(#212529, #14171a) fixed;
}
.modal-content {