mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Initial support for themes, sound improvements
This commit is contained in:
@@ -74,10 +74,17 @@ class MusicInstance extends MusicInstanceInterface {
|
||||
autoplay: false,
|
||||
loop: true,
|
||||
html5: true,
|
||||
volume: 0.3,
|
||||
volume: 1,
|
||||
preload: true,
|
||||
pool: 2,
|
||||
|
||||
onunlock: () => {
|
||||
if (this.playing) {
|
||||
logger.log("Playing music after manual unlock");
|
||||
this.play();
|
||||
}
|
||||
},
|
||||
|
||||
onload: () => {
|
||||
resolve();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user