Don't show intro video on mobile

This commit is contained in:
Flashfyre 2024-04-16 10:59:15 -04:00
parent 5058bcf717
commit 986e907894
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,7 @@ splashMessages.push(...[
'Now with 33% More Salt!',
'Infinite Fusion at Home!',
'Broken Egg Moves!',
'Magnificent!',
'Mubstitute!',
'That\'s Crazy!',
'Orance Juice!',

View File

@ -6,6 +6,7 @@ import { getBiomeHasProps } from "./field/arena";
import CacheBustedLoaderPlugin from "./plugins/cache-busted-loader-plugin";
import { SceneBase } from "./scene-base";
import { WindowVariant, getWindowVariantSuffix } from "./ui/ui-theme";
import { isMobile } from "./touch-controls";
import * as Utils from "./utils";
export class LoadingScene extends SceneBase {
@ -23,7 +24,8 @@ export class LoadingScene extends SceneBase {
this.load['cacheBuster'] = buildIdMatch[1];
}
this.load.video('intro_dark', 'images/intro_dark.mp4', true);
if (!isMobile())
this.load.video('intro_dark', 'images/intro_dark.mp4', true);
this.loadImage('loading_bg', 'arenas');
this.loadImage('logo', '');
@ -316,7 +318,8 @@ export class LoadingScene extends SceneBase {
loadingGraphics.push(bg, graphics, progressBar, progressBox, logo, percentText, assetText);
loadingGraphics.map(g => g.setVisible(false));
if (!isMobile())
loadingGraphics.map(g => g.setVisible(false));
const destroyLoadingAssets = () => {
intro.destroy();