feat: Add temporary console logs for ping debugging

This commit is contained in:
Restart2008
2025-11-22 15:20:07 -08:00
parent 4225f6a2d9
commit 647b22c55e
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -516,6 +516,12 @@ export class InputHandler {
x: worldCoords.x,
y: worldCoords.y,
});
console.log(
"Emitting PingPlacedEvent with type:",
this.uiState.currentPingType,
"at world coordinates:",
worldCoords,
);
this.eventBus.emit(
new PingPlacedEvent(
this.uiState.currentPingType,
+1 -1
View File
@@ -370,7 +370,7 @@ export class FxLayer implements Layer {
this.pingEventCleanup = this.eventBus.on(
PingPlacedEvent,
(event: PingPlacedEvent) => {
console.log("received PingPlacedEvent", event);
console.log("received PingPlacedEvent in FxLayer", event);
const pingFx = new PingFx(this.game, event.type, event.tile);
this.allFx.push(pingFx);
},