launch
Function of @v12-engine/client
export declare function launch(options: LaunchOptions): Launched;Shows a game on the page and lets the player play it: the world made from the map (or loaded, made in code, or joined: GameSource), the engine that draws it, the client, the loading screen, then the HUD and what floats over it, all inside target. What it gives back ends it again.
launch( target: '#game', game )
A game made with createGame is played on its first map, and its start (Game.onStart) run, where the options say neither; its view is fetched as it is got ready.
Each step it takes is there on its own for a page that puts a game together another way: prepareGame, assembleClient, runGame (the game from its load to its end, nothing drawn), and GameMount (@v12-engine/client/app, which draws a run).
The HUD is loaded when a game is launched, not when this is imported: a game's view names @v12-engine/client, and is read where there is no page too (a server that checks it, a tool that draws a map)