diff --git a/assets/teleportation.mp3 b/assets/teleportation.mp3 new file mode 100644 index 0000000..8fca343 Binary files /dev/null and b/assets/teleportation.mp3 differ diff --git a/script.js b/script.js index 48208fc..2419f50 100644 --- a/script.js +++ b/script.js @@ -285,6 +285,8 @@ async function startGame(gameID) { case TELEPORTATION: + playAudio("assets/teleportation.mp3"); + // Teleport the snake to the other cell const possibleDestinations = teleportationCells.filter((v) => v[0] != newHead[0] && v[1] != newHead[1]); const chosenDestination = possibleDestinations[randInt(0, possibleDestinations.length)];