consolidate debugging

This commit is contained in:
koneko 2024-10-18 15:08:54 +02:00
parent e04d4a76c7
commit bfe46f0cfa
2 changed files with 2 additions and 1 deletions

View File

@ -46,4 +46,5 @@ export default class Assets {
public static MissionBackgrounds: PIXI.Texture[] = [];
public static Missions: MissionDefinition[];
public static CreepStats: CreepStats[];
public static DebuggingEnabled: boolean = true;
}

View File

@ -40,7 +40,7 @@ export class Cell extends GameObject {
this.container.addChild(g);
this.container.x = this.bounds.x;
this.container.y = this.bounds.y;
return; // comment to enable debugging
if (!Assets.DebuggingEnabled) return;
const text = new PIXI.Text({
text: `${this.row}|${this.column}`,
style: new PIXI.TextStyle({