Skip to content

Commit

Permalink
fixme: remove text + fade that was causing issues on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 4, 2023
1 parent 89e2221 commit bc4cac0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/levels/level-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
});

Expand Down
10 changes: 7 additions & 3 deletions src/levels/tutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
});

Expand Down Expand Up @@ -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[] = [];
Expand Down

0 comments on commit bc4cac0

Please sign in to comment.