Console class for Pixi.js useful for developing mobile game.
By default attaches itself to console log and error and will show itself if error is occurred.
- 🆕 Added support for Pixi v7 alongside with v6
npm install pixi-console
- For backward compatibility ( pixi.js v5 ) go with pixi-console 3.0.0 or greater version
- For backward compatibility ( pixi.js v4 ) go with pixi-console 2.5.0 or greater version
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.