Clean up logs and fix variant reference error

This commit is contained in:
2026-01-02 23:13:52 +01:00
parent 970ff224c3
commit 8bb0dd8780
12 changed files with 106 additions and 801 deletions

View File

@@ -18,7 +18,7 @@ export class GameEngine {
}
startMission(missionConfig) {
console.log('[GameEngine] Starting mission:', missionConfig.name);
this.dungeon.startDungeon(missionConfig);
// Create player at center of first tile
@@ -40,7 +40,7 @@ export class GameEngine {
this.onEntityUpdate(this.player);
}
console.log('[GameEngine] Player created at', this.player.x, this.player.y);
}
onCellClick(x, y) {
@@ -50,7 +50,7 @@ export class GameEngine {
if (this.onEntitySelect) {
this.onEntitySelect(this.player.id, true);
}
console.log('[GameEngine] Player selected');
return;
}
@@ -59,7 +59,7 @@ export class GameEngine {
if (this.canMoveTo(x, y)) {
this.movePlayer(x, y);
} else {
console.log('[GameEngine] Cannot move there');
}
}
}
@@ -86,7 +86,7 @@ export class GameEngine {
this.onEntitySelect(this.player.id, false);
}
console.log('[GameEngine] Player moved to', x, y);
}
isPlayerAdjacentToDoor(doorExit) {