Replace intro with smaller file

pull/142/head
Flashfyre 2024-04-15 14:45:00 -04:00
parent 69d9f705a1
commit 8cce544536
4 changed files with 2 additions and 5 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.mp4', true);
this.load.video('intro_dark', 'images/intro_dark.webm', true);
this.loadImage('loading_bg', 'arenas');
this.loadImage('logo', '');

View File

@ -1,7 +1,5 @@
let cacheBuster = '';
const ignoredFiles = [ 'intro_dark' ];
export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin {
constructor(scene: Phaser.Scene) {
super(scene)
@ -19,7 +17,6 @@ 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);