feat(achievements): black fade in and out from home and settings screen
This commit is contained in:
@@ -29,21 +29,14 @@ onClick((x, y) => {
|
||||
});
|
||||
|
||||
onRender((ctx) => {
|
||||
assets.images.home.bottomScreen.background.draw(ctx, 0, 0);
|
||||
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage1Opacity
|
||||
: store.isOutro
|
||||
? store.outro.stage1Opacity
|
||||
: 1;
|
||||
ctx.fillStyle = "#000000";
|
||||
ctx.fillRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT);
|
||||
|
||||
// achievement list (reversed iteration because they appear in cascade)
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage2Opacity
|
||||
? store.intro.stage1Opacity
|
||||
: store.isOutro
|
||||
? store.outro.stage2Opacity
|
||||
? store.outro.stage1Opacity
|
||||
: 1;
|
||||
ctx.font = "7px NDS7";
|
||||
ctx.textBaseline = "top";
|
||||
@@ -78,9 +71,9 @@ onRender((ctx) => {
|
||||
}
|
||||
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage2Opacity
|
||||
? store.intro.stage1Opacity
|
||||
: store.isOutro
|
||||
? store.outro.stage3Opacity
|
||||
? store.outro.stage2Opacity
|
||||
: 1;
|
||||
assets.images.achievements.quit.draw(ctx, QUIT_X, QUIT_Y);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user