0.4.1 • Published 3 years ago

pixi-extended v0.4.1

Weekly downloads
-
License
GNU
Repository
github
Last release
3 years ago

npm npm bundle size

PIXI-Extended

A framework as a npm library to help you develop with PIXI 2d games.

Note:This package is bundled with PIXI v6.0.4, you don't have to install it.

Installation

npm i -s pixi-extended You can use this package with TypeScript.

Features

  • Enhanced classes that extends default PIXI ones to better use them.
  • Enhanced event handling strictly typed.
  • Fully typed in TypeScript, with strict events using custom EventEmitter class.
  • Some utility collisions/maths classes and functions.
  • Mouse/Keyboard support with a class & functions.
  • Other utility classes/objects for PIXI.

Examples

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();

Documentation

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.

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago