From b13410df02ab40b8c1814118c90a025e04cb7735 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Jan 2024 09:08:44 +0900 Subject: [PATCH] enhance(drop-and-fusion): some tweaks --- packages/frontend/src/pages/drop-and-fusion.game.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/drop-and-fusion.game.vue b/packages/frontend/src/pages/drop-and-fusion.game.vue index c973b4582..19ee029ea 100644 --- a/packages/frontend/src/pages/drop-and-fusion.game.vue +++ b/packages/frontend/src/pages/drop-and-fusion.game.vue @@ -77,6 +77,7 @@ SPDX-License-Identifier: AGPL-3.0-only
SCORE: {{ gameMode === 'yen' ? '円' : 'pt' }}
MAX CHAIN:
+
TOTAL EARNINGS:
{{ i18n.ts.replaying }}
@@ -736,8 +737,8 @@ function tickReplay() { } async function start() { - await loadMonoTextures(); renderer = createRendererInstance(game); + await loadMonoTextures(); Matter.Render.lookAt(renderer, { min: { x: 0, y: 0 }, max: { x: game.GAME_WIDTH, y: game.GAME_HEIGHT }, @@ -915,7 +916,7 @@ function getGameImageDriveFile() { ctx.fillStyle = '#000'; ctx.font = '16px bold sans-serif'; ctx.textBaseline = 'top'; - ctx.fillText(`SCORE: ${score.value.toLocaleString()}`, 10, 10); + ctx.fillText(`SCORE: ${score.value.toLocaleString()}${props.gameMode === 'yen' ? '円' : 'pt'}`, 10, 10); ctx.globalAlpha = 0.7; ctx.drawImage(logo, game.GAME_WIDTH * 0.55, 6, game.GAME_WIDTH * 0.45, game.GAME_WIDTH * 0.45 * (logo.height / logo.width));