1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add small tutorial

This commit is contained in:
tobspr
2020-05-23 12:26:04 +02:00
parent 10fe067c85
commit c502ecad0c
10 changed files with 185 additions and 15 deletions

View File

@@ -104,7 +104,7 @@ class MusicInstance extends MusicInstanceInterface {
}),
new Promise((resolve, reject) => {
this.howl = new Howl({
src: cachebust("res/sounds/music/" + this.url),
src: cachebust("res/sounds/music/" + this.url + ".mp3"),
autoplay: false,
loop: true,
html5: true,

View File

@@ -27,8 +27,8 @@ export const SOUNDS = {
};
export const MUSIC = {
theme: "theme.mp3",
menu: "menu.mp3",
theme: "theme",
menu: "menu",
};
export class SoundInstanceInterface {