fix: update portrait asset keys to include Game suffix

Change portrait asset keys from 'Checkers'/'Chess' to 'CheckersGame'/'ChessGame'
to match expected asset naming convention in createPlayerPortrait calls.
This commit is contained in:
Brian Fertig 2026-06-29 23:27:48 -06:00
parent e6d0b2ee5d
commit 1ab626d431
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ export default class CheckersGame extends Phaser.Scene {
const plrAY = BY + BOARD - r - 20;
this.add.circle(avatarX, plrAY, r + 5, COLORS.accent, 0.5).setDepth(depth);
createPlayerPortrait(this, avatarX, plrAY, r, depth + 1, 'Checkers');
createPlayerPortrait(this, avatarX, plrAY, r, depth + 1, 'CheckersGame');
this.add.text(avatarX, plrAY - r - 14, auth.user?.username ?? 'You', {
fontFamily: '"Julius Sans One"', fontSize: '18px',
color: COLORS.textHex, wordWrap: { width: 230 }, align: 'center',

View File

@ -148,7 +148,7 @@ export default class ChessGame extends Phaser.Scene {
const plrAY = BY + BOARD - r - 20;
this.add.circle(avatarX, plrAY, r + 5, COLORS.accent, 0.5).setDepth(depth);
createPlayerPortrait(this, avatarX, plrAY, r, depth + 1, 'Chess');
createPlayerPortrait(this, avatarX, plrAY, r, depth + 1, 'ChessGame');
this.add.text(avatarX, plrAY - r - 14, auth.user?.username ?? 'You', {
fontFamily: '"Julius Sans One"', fontSize: '18px',
color: COLORS.textHex, wordWrap: { width: 230 }, align: 'center',