Revert to not showing intro on mobile
This commit is contained in:
parent
ecedd81052
commit
46ce515fe4
|
@ -259,6 +259,8 @@ export class LoadingScene extends SceneBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadLoadingScreen() {
|
loadLoadingScreen() {
|
||||||
|
const mobile = isMobile();
|
||||||
|
|
||||||
const loadingGraphics: any[] = [];
|
const loadingGraphics: any[] = [];
|
||||||
|
|
||||||
const bg = this.add.image(0, 0, '');
|
const bg = this.add.image(0, 0, '');
|
||||||
|
@ -323,6 +325,7 @@ export class LoadingScene extends SceneBase {
|
||||||
|
|
||||||
loadingGraphics.push(bg, graphics, progressBar, progressBox, logo, percentText, assetText);
|
loadingGraphics.push(bg, graphics, progressBar, progressBox, logo, percentText, assetText);
|
||||||
|
|
||||||
|
if (!mobile)
|
||||||
loadingGraphics.map(g => g.setVisible(false));
|
loadingGraphics.map(g => g.setVisible(false));
|
||||||
|
|
||||||
const destroyLoadingAssets = () => {
|
const destroyLoadingAssets = () => {
|
||||||
|
@ -352,11 +355,13 @@ export class LoadingScene extends SceneBase {
|
||||||
break;
|
break;
|
||||||
case 'loading_bg':
|
case 'loading_bg':
|
||||||
bg.setTexture('loading_bg');
|
bg.setTexture('loading_bg');
|
||||||
//bg.setVisible(true);
|
if (mobile)
|
||||||
|
bg.setVisible(true);
|
||||||
break;
|
break;
|
||||||
case 'logo':
|
case 'logo':
|
||||||
logo.setTexture('logo');
|
logo.setTexture('logo');
|
||||||
//logo.setVisible(true);
|
if (mobile)
|
||||||
|
logo.setVisible(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue