Adjust Bingo game layout positioning

- Move human card header up by 20px (HEADER_Y: 140 -> 120)
- Shift master called-numbers board letters left by 30px (CB_LETTER_X: 540 -> 510)
This commit is contained in:
Brian Fertig 2026-05-25 10:44:35 -06:00
parent 91dac1f2e3
commit 00e6607a48
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const SPIN_FORCE = 0.0011; // tangential force keeping the balls circ
const REVEAL_X = 235, REVEAL_Y = 655, REVEAL_R = 86;
// Center: human card
const CARD_CX = 960, CELL = 104, CGAP = 10, HEADER_Y = 140, ROW0_Y = 210;
const CARD_CX = 960, CELL = 104, CGAP = 10, HEADER_Y = 120, ROW0_Y = 210;
const colX = (c) => CARD_CX - (5 * CELL + 4 * CGAP) / 2 + CELL / 2 + c * (CELL + CGAP); // 732 + 114c
const rowY = (r) => ROW0_Y + r * (CELL + CGAP); // 210 + 114r
@ -33,7 +33,7 @@ const PW = 196, PH = 176;
// Bottom: master called-numbers board (B-I-N-G-O × 1..15)
const CB_CX0 = 590, CB_STEP_X = 90, CB_CELL_W = 84, CB_CELL_H = 44;
const CB_RY = [792, 844, 896, 948, 1000];
const CB_LETTER_X = 540;
const CB_LETTER_X = 510;
const COL_COLORS = { B: 0x4a90d9, I: 0xe05c5c, N: 0xf0e8d0, G: 0x5cb85c, O: 0xf0a830 };
const COL_TEXT = (letter) => (letter === 'N' ? '#1a1208' : '#ffffff');