diff --git a/public/images/intro_dark.mp4 b/public/images/intro_dark.mp4 new file mode 100644 index 000000000..bd3f8f61a Binary files /dev/null and b/public/images/intro_dark.mp4 differ diff --git a/public/images/intro_dark.webm b/public/images/intro_dark.webm deleted file mode 100644 index 0afe383b7..000000000 Binary files a/public/images/intro_dark.webm and /dev/null differ diff --git a/src/loading-scene.ts b/src/loading-scene.ts index d085195fd..e81005ec8 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -23,7 +23,7 @@ export class LoadingScene extends SceneBase { this.load['cacheBuster'] = buildIdMatch[1]; } - this.load.video('intro_dark', 'images/intro_dark.webm', true); + this.load.video('intro_dark', 'images/intro_dark.mp4', true); this.loadImage('loading_bg', 'arenas'); this.loadImage('logo', ''); diff --git a/src/plugins/cache-busted-loader-plugin.ts b/src/plugins/cache-busted-loader-plugin.ts index bce34c243..e1ee78709 100644 --- a/src/plugins/cache-busted-loader-plugin.ts +++ b/src/plugins/cache-busted-loader-plugin.ts @@ -1,5 +1,7 @@ let cacheBuster = ''; +const ignoredFiles = [ 'intro_dark' ]; + export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin { constructor(scene: Phaser.Scene) { super(scene) @@ -17,7 +19,8 @@ export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin if (!Array.isArray(file)) file = [ file ]; - file.forEach(item => item.url += '?v=' + cacheBuster); + if (!ignoredFiles.includes(file?.key) && cacheBuster) + file.forEach(item => item.url += '?v=' + cacheBuster); super.addFile(file); }