menuScene
Function of @v12-engine/client/app
ts
export declare function menuScene(def: MenuDef): MenuScene;A menu: its title and buttons, what the game is and its facts, a background, and a game scene played behind its buttons (behind: a cinematic that loops, composed in: menuScene({ ..., behind: cinematicScene({ ... }) })); drawn by the client, a component of the game's or an element of its own (MenuDef). A scene like any other (U2): what names it names the menu itself, and what its buttons go to is what it names (Scene.names)
const home = menuScene( id: 'home', name: 'Home', title: 'My game', buttons: [ label: 'Play', scene: play ] )