scene(name: SceneName, def: SceneDef): void
Define a scene.
param
name- The scene name.
param
def- The scene definition.
// define a scene scene("game", () => { // ... }); // get options scene("game", (opts) => { debug.log(opts.level); });
Define a scene.
param
name- The scene name.
param
def- The scene definition.
// define a scene scene("game", () => { // ... }); // get options scene("game", (opts) => { debug.log(opts.level); });
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Layer
Camera
Level
Plugins
Button Bindings