- commit
- 7f248768232807e0b659cc4dee916ee56cd1c1e3
- parent
- 09aa413d9baa7558eea347e8cf3ce81a292d479e
- author
- Dami <dami.etoile@gmail.com>
| M | src/ | 10 | +++++----- |
@@ -249,16 +249,16 @@ export function createStage(options = {}) {
249249 ctx.textAlign = "center";250250 if (!hasAutomata) ctx.fillText("SWIPE TO WALK", width / 2, y - 22);251251 if (hasAutomata) {252- const waitText = "SPACE WAIT";252+ const waitText = "WAIT";253253 ctx.font = "700 10px Recursive, monospace";254- const waitWidth = ctx.measureText(waitText).width + 18;254+ const waitWidth = Math.max(96, ctx.measureText(waitText).width + 18);255255 const waitLeft = width / 2 - waitWidth / 2;256256 ctx.fillStyle = "#232120";257257 ctx.strokeStyle = "#4A4640";258- ctx.fillRect(waitLeft, height - 78, waitWidth, 24);259- ctx.strokeRect(waitLeft + 0.5, height - 77.5, waitWidth - 1, 23);258+ ctx.fillRect(waitLeft, height - 84, waitWidth, 32);259+ ctx.strokeRect(waitLeft + 0.5, height - 83.5, waitWidth - 1, 31);260260 ctx.fillStyle = "#F2EEE6";261- ctx.fillText(waitText, width / 2, height - 66);261+ ctx.fillText(waitText, width / 2, height - 68);262262 }263263 ctx.restore();264264 }