Revert "Replace intro with smaller file"

This reverts commit 8cce544536.
pull/142/head
Flashfyre 2024-04-15 15:04:42 -04:00
parent 8cce544536
commit abc729ed5c
4 changed files with 5 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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', '');

View File

@ -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,6 +19,7 @@ export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin
if (!Array.isArray(file))
file = [ file ];
if (!ignoredFiles.includes(file?.key) && cacheBuster)
file.forEach(item => item.url += '?v=' + cacheBuster);
super.addFile(file);