Extends the PIXI.Application class to provide easy loading.
const scene = new PIXI.animate.Scene();
scene.load(lib.StageName);
| Name | Type | Default | Description |
|---|---|---|---|
width |
Number | 800 |
optional
Stage width |
height |
Number | 600 |
optional
Stage height |
renderOptions |
Object |
optional
See PIXI.Application for more info. |
|
noWebGL |
Boolean | false |
optional
Disable WebGL |
Members
-
instance PIXI.animate.MovieClip readonly
-
The stage object created.
-
sound PIXI.animate.sound readonly
-
Reference to the global sound object
Methods
-
Destroy and don't use after calling.
Name Type Default Description removeViewBoolean false optional trueto remove canvas element. -
load (StageRef, complete, basePath)PIXI.loaders.Loader
-
Load a stage scene and add it to the stage.
Name Type Description StageReffunction Reference to the stage class.
completefunction optional Callback when finished loading.
basePathString optional Optional base directory to prepend to assets.
Returns:
Type Description PIXI.loaders.Loader instance of PIXI resource loader