refactor: resize and reposition mini bingo card background
- Reduce mini card dimensions from 125x125 to 90x90 pixels - Adjust positioning coordinates from (px+54.5, py+34.5) to (px+28, py+8) - Improves visual alignment and spacing of opponent's bingo card in the UI
This commit is contained in:
parent
57c9d85864
commit
3b113a1092
|
|
@ -309,8 +309,8 @@ export default class BingoGame extends Phaser.Scene {
|
|||
this.add.rectangle(px, py, PW, PH, 0x000000, 0.6).setStrokeStyle(1, 0x8a7050).setDepth(D.panel);
|
||||
|
||||
// Cream white background behind the mini bingo card
|
||||
const miniW = 125, miniH = 125;
|
||||
this.add.rectangle(px + 54.5, py + 34.5, miniW, miniH, 0xe4e2b3, 0.95)
|
||||
const miniW = 90, miniH = 90;
|
||||
this.add.rectangle(px + 28, py + 8, miniW, miniH, 0xe4e2b3, 0.95)
|
||||
.setDepth(D.panel + 1);
|
||||
|
||||
this.add.text(px, py - PH / 2 + 16, opp.name ?? `Player ${i + 1}`, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue