From 986e9078944610f6ed928fd02d4f10f03b133eaf Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 16 Apr 2024 10:59:15 -0400 Subject: [PATCH] Don't show intro video on mobile --- src/data/splash-messages.ts | 1 + src/loading-scene.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/data/splash-messages.ts b/src/data/splash-messages.ts index 32a48d03063..198ff07cec9 100644 --- a/src/data/splash-messages.ts +++ b/src/data/splash-messages.ts @@ -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!', diff --git a/src/loading-scene.ts b/src/loading-scene.ts index e81005ec8cf..ebdcb6c2749 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -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();