diff --git a/assets/eat.mp3 b/assets/eat.mp3 new file mode 100644 index 0000000..129046c Binary files /dev/null and b/assets/eat.mp3 differ diff --git a/script.js b/script.js index 8ba325c..56e0ab4 100644 --- a/script.js +++ b/script.js @@ -187,6 +187,7 @@ async function startGame(gameID) { case FOOD: increaseSize = true; + playAudio("assets/eat.mp3") score++; break;