pixi-scenes
Split your pixi.js application into multiple scenes and manage them with ease.
Getting started
Installation
npm i pixi-scenes
Usage
Accessability
You can use this library through import/require or by loading it straight into your html. After loading it you can access the library under the global declaration of the pixi namespace. ex: PIXI.scenes.SceneManager
Setup
;;
Using scenes
scenes.add'splash', new SplashScene;scenes.add'menu', new MenuScene;scenes.add'gameover', new GameoverScene;scenes.start'splash';
Example scene
;
About
Splitting your codebase into multiple states/scenes in a common practice in the app/game world and can now easilly be done using this plugin for PIXI.js.
TODO
- Event system on manager
- Allow scene transitions
- Subscenes structure
- Resize integration
- Improve tests
- Improve readme
- Add documentation pages
- Add example project
- Add exports/globals tests
- Bundle definitions