Update audio
This commit is contained in:
parent
af9f4c670e
commit
a5e8363c95
3 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ let gameOverModal;
|
||||||
|
|
||||||
|
|
||||||
audio.loop = true;
|
audio.loop = true;
|
||||||
|
audio.volume = "1";
|
||||||
startSound.volume = "0.2";
|
startSound.volume = "0.2";
|
||||||
|
eatSound.volume = "0.2";
|
||||||
|
dieSound.volume = "0.2";
|
||||||
|
gameOverSound.volume = "0.2";
|
||||||
|
|
||||||
req.open("GET", "sources/levels.json");
|
req.open("GET", "sources/levels.json");
|
||||||
req.onerror = () => console.error("Fail to load XML request");
|
req.onerror = () => console.error("Fail to load XML request");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"Level 1": {
|
"Level 1": {
|
||||||
"snakeSpeed": 500
|
"snakeSpeed": 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Reference in a new issue