Scenes

Scenes is a way of separating your app into different states. If you're creating a game, maybe you have an intro scene, a game scene and a game-over scene. When creating a new scene, you tell oCanvas what objects this scene concists of. When you want to load a specific scene, oCanvas will add these objects to the canvas. You can also specify if old scenes should be unloaded.

Pages

Methods

Properties

current : String
The name of the scene that is currently loaded. If no scene is loaded, this is "none"
scenes : Object
Contains all the scenes that have been created. The property names in this object are the names of the scenes, and the values are the actual scene objects.