Skip to content

@v12-engine/editor/scene ​

Core ​

What a game meets first.

NameKindWhat
editorScenefunctionThe 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] ) )

Advanced ​

Interfaces ​

NameWhat
EditorSceneDef betaThe map editor as a scene of the app (editorScene): a page of its own, not a game

Functions ​

NameWhat
hotExtensions betaWhat a module that defines extensions of the editor calls with itself as it is saved (the dev server's plugin writes the call in: import.meta.hot.accept): its extensions' new versions, into the page's editors

Values ​

NameWhat
captureKind betaThe capture point as a kind the editor places: for an editor extension's kinds (or EditorScene.kinds). Its fields are the engine's CAPTURE_FIELDS: the reach, the seconds to take, what it does contested, whose it is at the start; the ring is as far as it reaches