diff --git a/sources/js/index.js b/sources/js/index.js index 276224b..556d520 100644 --- a/sources/js/index.js +++ b/sources/js/index.js @@ -21,7 +21,11 @@ let gameOverModal; audio.loop = true; +audio.volume = "1"; startSound.volume = "0.2"; +eatSound.volume = "0.2"; +dieSound.volume = "0.2"; +gameOverSound.volume = "0.2"; req.open("GET", "sources/levels.json"); req.onerror = () => console.error("Fail to load XML request"); diff --git a/sources/levels.json b/sources/levels.json index 31bf356..af6a60e 100644 --- a/sources/levels.json +++ b/sources/levels.json @@ -1,5 +1,5 @@ { "Level 1": { - "snakeSpeed": 500 + "snakeSpeed": 100 } } diff --git a/sources/sound/onGameOver.mp3 b/sources/sound/onGameOver.mp3 index 3b15a5c..f6ea119 100644 Binary files a/sources/sound/onGameOver.mp3 and b/sources/sound/onGameOver.mp3 differ