parent
8cce544536
commit
abc729ed5c
Binary file not shown.
Binary file not shown.
|
@ -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', '');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue