Celebrate then define
This commit is contained in:
parent
728de20948
commit
c448a63b7c
@ -239,13 +239,15 @@ function shakeTiles(tiles) {
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
// IT'S RIGHT HERE YOU BLIND MOFO"
|
||||
function checkWinLose(guess, tiles) {
|
||||
if (guess === targetWord) {
|
||||
showAlert("Congratulations, You win!", 5000)
|
||||
danceTiles(tiles)
|
||||
celebrateWithConfetti()
|
||||
showWordDefinition(targetWord, true)
|
||||
setTimeout(() => {
|
||||
showWordDefinition(targetWord, true)
|
||||
},3000)
|
||||
stopInteraction()
|
||||
return
|
||||
}
|
||||
@ -442,4 +444,4 @@ themeButton.addEventListener('click', () => {
|
||||
})
|
||||
|
||||
// Initialize the game when the page loads
|
||||
document.addEventListener('DOMContentLoaded', initializeGame)
|
||||
document.addEventListener('DOMContentLoaded', initializeGame)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user