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:
parent
e6d0b2ee5d
commit
1ab626d431
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue