Skip to content

editorScene ​

Function of @v12-engine/editor/scene

ts
export declare function editorScene(def: EditorSceneDef): Scene;

The map editor as a scene of an app (startApp): it plays its maps in the scene it names (play, Play here over the editor), and leaves where exit says, to the list of scenes otherwise. Its code is fetched as it is first opened. A scene of the app like any of a game's own (Scene); appScenes makes one with it

startApp( target: '#game', scenes: [menu, play, editorScene( id: 'editor', name: 'Map editor', game, play )] ) appScenes( game, maps, editor: editorScene ) appScenes( game, maps, editor: (scene) = editorScene( ...scene, extensions: [waves] ) )