Skip to content

Launched beta ​

Interface of @v12-engine/client

ts
export interface Launched

A game launched: what the page holds of it

Members ​

client ​

ts
readonly client: GameClient | undefined;

The client, once the game is on

dispose ​

ts
dispose(): void;

Ends the game and takes it off the page: its engine, its sounds, its world, its element

element ​

ts
readonly element: HTMLElement;

The game's own element, inside the target

ready ​

ts
readonly ready: Promise<GameClient>;

The client once the game is on: of the game shown now, after a restart too. Rejects when it could not be loaded

restart ​

ts
restart(from?: WorldSave): void;

The same game again: from the start, or from a save