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); });