From 795ef9b11f705ac8ce9e2a65d518ecd051e81dbf Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Thu, 11 Jun 2026 15:36:31 -0600 Subject: [PATCH] Don't show hand value until cards dealt --- public/src/games/blackjack/BlackjackGame.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/src/games/blackjack/BlackjackGame.js b/public/src/games/blackjack/BlackjackGame.js index ae41fa0..ea21bf0 100644 --- a/public/src/games/blackjack/BlackjackGame.js +++ b/public/src/games/blackjack/BlackjackGame.js @@ -766,11 +766,13 @@ export default class BlackjackGame extends Phaser.Scene { // Build card graphics now (hands are populated but graphics weren't created yet) this.renderAll(); - // Hide all cards initially + // Hide all cards and score totals initially for (const cards of Object.values(this.cardGraphics)) { for (const c of cards) c.setAlpha(0); } for (const c of this.dealerCardGraphics) c.setAlpha(0); + for (const txt of Object.values(this.scoreTxts)) txt.setAlpha(0); + this.dealerScoreTxt.setAlpha(0); let idx = 0; const DECK_X = CX + 200, DECK_Y = 50; @@ -778,6 +780,8 @@ export default class BlackjackGame extends Phaser.Scene { const dealNext = () => { if (idx >= dealSeq.length) { + for (const txt of Object.values(this.scoreTxts)) txt.setAlpha(1); + this.dealerScoreTxt.setAlpha(1); onComplete(); return; }