Skip to content

appScenes ​

Function of @v12-engine/client/app

ts
export declare function appScenes(options: AppScenesOptions): Scene[];

The scenes a game is made of, as a list for startApp: the start screen (home: what the game is, and a button for each scene), the game (play), the settings, a random map when the rules generate one, the map editor and a server when asked. The list is a plain array: a project adds its own scenes to it, or takes one away

startApp( target: '#game', game, scenes: appScenes( game, editor, server: true ), start: 'home' )

sceneAsked picks the scene the address names (/?editor), for start