Skip to content

ScoreFormat beta ​

TypeAlias of @v12-engine/engine

ts
export type ScoreFormat = 'number' | 'decimal' | 'percent' | 'time';

How a stat's number reads on a screen: a whole number (the default), a decimal one, a percent (0..1), or time (seconds, as 3:05). A screen's own (GameView.hud.score.format) goes over it