Fixed minor prod issues
All checks were successful
Build and publish / Build Container (push) Successful in 1m27s

This commit is contained in:
2026-03-01 00:03:45 -05:00
parent 4735968612
commit aa79b21a5f
5 changed files with 134 additions and 146 deletions

View File

@@ -190,7 +190,6 @@ class Game {
this.otherPlayers = new Map();
this.isMoving = false;
this.dialogue = null;
this.audioManager = null;
this.keys = {};
// Use global singleton 🌍
@@ -215,7 +214,6 @@ class Game {
},
onCurrentPlayers: (players) => {
console.log('👥 Current players:', players);
players.forEach(player => {
if (player.socketId !== this.api.worldSocket.id) {
this.addOtherPlayer(player);
@@ -224,7 +222,6 @@ class Game {
},
onPlayerJoined: (player) => {
console.log('👋 Player joined:', player.name);
this.addOtherPlayer(player);
},
@@ -236,7 +233,6 @@ class Game {
},
onPlayerLeft: (data) => {
console.log('👋 Player left:', data.socketId);
const sprite = this.otherPlayers.get(data.socketId);
if (sprite) {
this.app.stage.removeChild(sprite);
@@ -297,7 +293,7 @@ class Game {
resolution: window.devicePixelRatio || 1,
autoDensity: true
});
document.body.appendChild(this.app.view);
document.getElementById('game').appendChild(this.app.view);
const tiles = new PIXI.Container();
this.app.stage.addChild(tiles);