Don't show intro video on mobile
parent
5058bcf717
commit
986e907894
|
@ -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!',
|
||||
|
|
|
@ -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,6 +24,7 @@ export class LoadingScene extends SceneBase {
|
|||
this.load['cacheBuster'] = buildIdMatch[1];
|
||||
}
|
||||
|
||||
if (!isMobile())
|
||||
this.load.video('intro_dark', 'images/intro_dark.mp4', true);
|
||||
|
||||
this.loadImage('loading_bg', 'arenas');
|
||||
|
@ -316,6 +318,7 @@ export class LoadingScene extends SceneBase {
|
|||
|
||||
loadingGraphics.push(bg, graphics, progressBar, progressBox, logo, percentText, assetText);
|
||||
|
||||
if (!isMobile())
|
||||
loadingGraphics.map(g => g.setVisible(false));
|
||||
|
||||
const destroyLoadingAssets = () => {
|
||||
|
|
Loading…
Reference in New Issue