Scenario

Scenario

new Scenario(scenesopt)

Source:
create a Scenario
Example
var scenario = new Scenario({
	0 : scene1,
	0.4 : scene2,
	0.7 : scene3
});
Parameters:
Name Type Attributes Default Description
scenes Object <optional>
false scenes.

Methods

addScene(time, Scene) → {Scenario}

Source:
Add Scene in time
Example
var scenario = new Scenario();
scenario.addScene(0, scene1);
scenario.addScene(0.5, scene2);
scenario.addScene(1, scene3);
scenario.addScene({
	2: scene4,
	3: scene5
});
Parameters:
Name Type Description
time number Play Time.
Scene Scene Scene.
Returns:
An instance.
Type
Scenario