Skip to content

GameRunPlace beta ​

Interface of @v12-engine/client

ts
export interface GameRunPlace

Where a run's game is drawn: the two canvases the client draws on, in the game's element (root), and what says something over it for a moment (toast: what draws the game has one; the run offers a lower quality on it)

Members ​

canvas ​

ts
canvas: HTMLCanvasElement;

The canvas the game's 3D picture is drawn on

overlay ​

ts
overlay: HTMLCanvasElement;

The canvas laid over it that the HUD's marks and the order lines are drawn on

root ​

ts
root: HTMLElement;

The element the game fills; the pointer and the keys are read on it

toast ​

ts
toast?: (text: string, options: {
        seconds: number;
        action?: {
            label: string;
            run: () => void;
        };
    }) => void;

Says something over the game for a moment, with an optional button; the run offers a lower quality on it, and none where the game has no toast