MinimapFrame beta
Interface of @v12-engine/client
ts
export interface MinimapFrameWhat a layer of the minimap is given each time it draws: the size of the minimap in its pixels, the map's transform (a point of the world on the minimap, and pixels a unit of the world), the client, and the time
Members
client
ts
client: GameClientApi;The client the minimap draws for, to read the game's state and the camera from
now
ts
now: number;performance.now() as it draws: for what blinks or moves
scale
ts
scale: {
x: number;
y: number;
};Pixels of the minimap a unit of the world, across and down: for sizes in the world (a ring of a radius)
size
ts
size: number;Its width and height, in the canvas's pixels
toMap
ts
toMap: (x: number, z: number) => {
x: number;
y: number;
};A point of the world on the minimap, in the canvas's pixels