Sebastiankay
commited on
Commit
•
0716da8
1
Parent(s):
4f87e1c
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -406,7 +406,7 @@
|
|
406 |
|
407 |
// MARK: MATCHES
|
408 |
if (matches.length >= 3) {
|
409 |
-
SoundManager.play("plopp" +
|
410 |
console.log("Matches found: " + matches.length)
|
411 |
const scoreMultiplier = matches.length * 100 + matches.length * 10
|
412 |
gameState.score += scoreMultiplier
|
|
|
406 |
|
407 |
// MARK: MATCHES
|
408 |
if (matches.length >= 3) {
|
409 |
+
SoundManager.play("plopp" + getRandomInt(1, 3)) // play sound
|
410 |
console.log("Matches found: " + matches.length)
|
411 |
const scoreMultiplier = matches.length * 100 + matches.length * 10
|
412 |
gameState.score += scoreMultiplier
|