consolidate debugging
This commit is contained in:
parent
e04d4a76c7
commit
bfe46f0cfa
@ -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;
|
||||
}
|
||||
|
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user