Play a song when eating something

This commit is contained in:
Pierre HUBERT 2020-03-23 18:35:49 +01:00
parent 7cf478e35e
commit 95b0f2ba19
2 changed files with 1 additions and 0 deletions

BIN
assets/eat.mp3 Normal file

Binary file not shown.

View File

@ -187,6 +187,7 @@ async function startGame(gameID) {
case FOOD: case FOOD:
increaseSize = true; increaseSize = true;
playAudio("assets/eat.mp3")
score++; score++;
break; break;