Skip to content

FrameInfo beta ​

Interface of @v12-engine/client

ts
export interface FrameInfo

A frame of the game, as its phases are given it: the seconds since the last frame (dt, capped by the game's Limits.frameTime, and at least a tick of the game on the first frame, so that what the rules do as the game starts is in the first picture), and how far the frame stands between two ticks of the game (alpha: 1 where nothing ticks). The client's measure phase sets dt and its simulate phase alpha; a phase after them reads them

Members ​

alpha ​

ts
alpha: number;

How far between two ticks the frame stands, 0..1; 1 where nothing ticks

dt ​

ts
dt: number;

Seconds since the last frame, capped by Limits.frameTime

frozen ​

ts
frozen?: boolean;

The world stands still this frame (client.freeze: the pause menu): what moves in it is given no time, though dt is still the screen's. A phase of the game's that moves the world should move it by none then