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 removeView
Boolean false optional true
to remove canvas element. -
load (StageRef, complete, basePath)PIXI.loaders.Loader
-
Load a stage scene and add it to the stage.
Name Type Description StageRef
function Reference to the stage class.
complete
function optional Callback when finished loading.
basePath
String optional Optional base directory to prepend to assets.
Returns:
Type Description PIXI.loaders.Loader instance of PIXI resource loader