Console class for PIXI useful for developing mobile game.
By default attaches itself to console log and error and will show itself if error is occurred.
npm install pixi-console
import { PixiConsole, PixiConsoleConfig } from "pixi-console";
// customize default values of PixiConsole
const consoleConfig = new PixiConsoleConfig();
consoleConfig.consoleWidth = 800;
consoleConfig.consoleHeight = 600;
const pixiConsole = new PixiConsole(consoleConfig);
stage.addChild(pixiConsole);
const secondConsole = new PixiConsole(consoleConfig); // Error PixiConsole is singleton..
pixiConsole == PixiConsole.getInstance(); // true
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
Generated using TypeDoc