From bc4cac0aae8490a6ae1ca87633b7d14f34489250 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Sun, 3 Dec 2023 23:29:02 -0600 Subject: [PATCH] fixme: remove text + fade that was causing issues on mobile --- src/levels/level-base.ts | 2 +- src/levels/tutorial.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/levels/level-base.ts b/src/levels/level-base.ts index d1e43f1..cec8dbb 100644 --- a/src/levels/level-base.ts +++ b/src/levels/level-base.ts @@ -108,7 +108,7 @@ export class LevelBase extends ex.Scene { unit: ex.FontUnit.Px, color: ex.Color.White, baseAlign: ex.BaseAlign.Top, - quality: 4 + quality: 1 }), }); diff --git a/src/levels/tutorial.ts b/src/levels/tutorial.ts index 0d9e1ef..bd2034b 100644 --- a/src/levels/tutorial.ts +++ b/src/levels/tutorial.ts @@ -53,7 +53,7 @@ export class Tutorial extends LevelBase { unit: ex.FontUnit.Px, color: ex.Color.White, baseAlign: ex.BaseAlign.Top, - quality: 4 + quality: 1 }), }); @@ -153,11 +153,15 @@ export class Tutorial extends LevelBase { const text = TutorialTextSheet.getSprite(index, 0) as ex.Sprite; text.scale = SCALE; this.focus.graphics.use(text); - await this.focus.actions.fade(1, 200).toPromise(); + this.focus.graphics.opacity = 1; + await ex.Util.delay(1000); + // await this.focus.actions.fade(1, 200).toPromise(); } async hideText() { - await this.focus.actions.fade(0, 200).toPromise(); + this.focus.graphics.opacity = 0; + await ex.Util.delay(1000); + // await this.focus.actions.fade(0, 200).toPromise(); } private _subs: ex.Subscription[] = [];