Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohhennrique committed Mar 17, 2021
1 parent 447c5c1 commit 957487a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
else {
draw()
timerId = setInterval(moveDown, 100)
timerId = setInterval(moveDown, 1000)
nextRandom = Math.floor(Math.random() * formas.length)
displayShape()
}
Expand Down Expand Up @@ -194,7 +194,7 @@ document.addEventListener('DOMContentLoaded', () => {
function gameOver() {
if (current.some(index => squares[currentPosition + index].classList.contains("taken"))) {
gameOverDisplay.innerHTML = "GAME OVER"
scoreDisplay.innerHTML = score
scoreDisplay.innerHTML = ""
clearInterval(timerId)
}

Expand Down

0 comments on commit 957487a

Please sign in to comment.