mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Multiple improvements to improve page load time
This commit is contained in:
@@ -185,7 +185,6 @@ export class SoundImplBrowser extends SoundInterface {
|
||||
keys.forEach(key => {
|
||||
this.sounds[key] = new WrappedSoundInstance(this.sfxHandle, key);
|
||||
});
|
||||
console.log(this.sounds);
|
||||
for (const musicKey in MUSIC) {
|
||||
const musicPath = MUSIC[musicKey];
|
||||
const music = new this.musicClass(musicKey, musicPath);
|
||||
|
||||
@@ -157,7 +157,8 @@ export class PreloadState extends GameState {
|
||||
if (G_IS_DEV) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
return waitNextFrame();
|
||||
return Promise.resolve();
|
||||
// return waitNextFrame();
|
||||
}
|
||||
|
||||
showFailMessage(text) {
|
||||
|
||||
Reference in New Issue
Block a user