0.6.2 • Published 4 years ago

angular2pixi v0.6.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Angular2Pixi

Create PIXI scenes in Angular 2 with markup! Make sure to check out the wiki for more information on usage. There is also a repo with working demos found at: https://github.com/Shadowstep33/a2p-demos

Install

npm install --save angular2pixi

Dependencies

A2P has two main dependencies that should automatically be installed

  • GSAP
  • PIXI.js

Getting Started

Include the module in your app

import {PixiModule}

@NgModule({
	...
	
  imports: [
	PixiModule
	]
	
	...

And voila, you should now have access to the module!

A2P contains a few basic components:

  • sprites: extendable component used to create PIXI.Sprites and support animations and interactions
  • text: similar to the sprite component, but uses PIXI.Text instead
  • filters: allows you to add effects to Containers

and a few services

  • pixi: gives access to pixi itself and initializes your Pixi workspace
  • asset: load up assets and do stuff when they're ready

Simple Example

<sprite
	[x]="w * 0.5"
	[y]="h * 0.6"
	imgUrl="./assets/demo/person.png"
	*ngIf="homeScene"
	scale="1"
	[container]="homeScene.layers.hud"
></sprite>

Please refer to the wiki for more details.

0.6.2

4 years ago

0.6.0

5 years ago

0.5.4

5 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago