go(name: SceneName, args: any): void

Go to a scene, passing all rest args to scene callback.

paramname- The scene name.

paramargs- The rest args to pass to the scene callback.

// go to "game" scene
go("game");

// go with options
go("game", { level: 1 });

sincev2000.0

kaplay logo

Misc

Layer