Clean up logs and fix variant reference error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user