Kiitos Player Layout
This commit is contained in:
parent
1b7efd5107
commit
cca6f54fa6
|
|
@ -172,13 +172,16 @@ export default class KiitosGame extends Phaser.Scene {
|
||||||
}).setOrigin(0.5).setDepth(D.centerTxt);
|
}).setOrigin(0.5).setDepth(D.centerTxt);
|
||||||
this.roundObjs.push(this.promptTxt);
|
this.roundObjs.push(this.promptTxt);
|
||||||
|
|
||||||
// seat panels (AIs across the top arc, human bottom-left summary)
|
// seat panels
|
||||||
|
// Opponent 1: left of the playfield, above the player's panel (with padding)
|
||||||
|
// Opponent 2: right of the playfield, vertically parallel with opponent 1
|
||||||
|
// Opponent 3: right of the playfield, vertically parallel with the player's panel
|
||||||
|
// and horizontally parallel with opponent 2
|
||||||
this.seatPanels = {};
|
this.seatPanels = {};
|
||||||
const ais = this.seats.filter((s) => !s.isHuman);
|
const ais = this.seats.filter((s) => !s.isHuman);
|
||||||
ais.forEach((s, i) => {
|
this.seatPanels[ais[0]?.id] = this.buildSeatPanel(ais[0], 180, 350);
|
||||||
const x = 360 + i * 420;
|
this.seatPanels[ais[1]?.id] = this.buildSeatPanel(ais[1], 1740, 620);
|
||||||
this.seatPanels[s.id] = this.buildSeatPanel(s, x, 250);
|
this.seatPanels[ais[2]?.id] = this.buildSeatPanel(ais[2], 1740, 760);
|
||||||
});
|
|
||||||
this.seatPanels['player'] = this.buildSeatPanel(this.seats[0], 200, 760);
|
this.seatPanels['player'] = this.buildSeatPanel(this.seats[0], 200, 760);
|
||||||
|
|
||||||
// Hand cards (top-level so drag coordinates map straight to world space) and
|
// Hand cards (top-level so drag coordinates map straight to world space) and
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue