From 46ce515fe4514cd2a3635de29f3b07a5a522e6b1 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 19 Apr 2024 08:45:21 -0400 Subject: [PATCH] Revert to not showing intro on mobile --- src/loading-scene.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/loading-scene.ts b/src/loading-scene.ts index c95e89199..e98712909 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -259,6 +259,8 @@ export class LoadingScene extends SceneBase { } loadLoadingScreen() { + const mobile = isMobile(); + const loadingGraphics: any[] = []; const bg = this.add.image(0, 0, ''); @@ -323,7 +325,8 @@ export class LoadingScene extends SceneBase { loadingGraphics.push(bg, graphics, progressBar, progressBox, logo, percentText, assetText); - loadingGraphics.map(g => g.setVisible(false)); + if (!mobile) + loadingGraphics.map(g => g.setVisible(false)); const destroyLoadingAssets = () => { intro.destroy(); @@ -352,11 +355,13 @@ export class LoadingScene extends SceneBase { break; case 'loading_bg': bg.setTexture('loading_bg'); - //bg.setVisible(true); + if (mobile) + bg.setVisible(true); break; case 'logo': logo.setTexture('logo'); - //logo.setVisible(true); + if (mobile) + logo.setVisible(true); break; } });