A framework as a npm library to help you develop with PIXI 2d games.
Note:
This package is bundled with PIXIv6.0.4
, you don't have to install it.
npm i -s pixi-extended
You can use this package with TypeScript.
import {Color, FPSCounter, loadTexture, PIXI, Sprite} from 'pixi-extended';
const app = new PIXI.Application({
backgroundColor: Color.BLACK.toHex(),
});
document.body.appendChild(app.view);
async function start() {
await loadTexture('myTexture', 'textures/myTexture.png');
const red = Color.RED;
const sprite = new Sprite('myTexture');
sprite.color = red;
const fpsCounter = new FPSCounter();
fpsCounter.addToApplication(app);
sprite.addToApplication(app);
}
start();
The documentation is automatically generated and updated from the code using GitHub workflows.
You can find it here.
The code is on the docs
branch.
Generated using TypeDoc