DOCS v0.1.13 github

@hatch:hud v0.1.2

Immediate-mode HUD overlay for the WrenLift game framework. HUD.new(g) gives you hud.label, hud.rect, hud.button — drawn through @hatch:gpu's Renderer2D, with click + hover state tracked across frames. Ships a built-in 5×7 procedural font (digits + uppercase + common punctuation) so HUD essentials (SCORE: 100, LIVES: 3, PAUSE) work without bringing an asset font.

stable system updated May 29, 2026 source ↗
README
$ hatch add @hatch:hud

MOD hud

CL BuiltinFont

FN BuiltinFont.static cellWidth → Num

FN BuiltinFont.static cellHeight → Num

FN BuiltinFont.static spacing → Num

FN BuiltinFont.static glyph(char: String) → List<Num>

FN BuiltinFont.static GLYPHS_

CL HUD

NEW HUD.new(g: GameState)

GET HUD.whiteTexture_ → Texture

GET HUD.endFrame

FN HUD.static uploadWhitePixel_(device)

FN HUD.beginFrame(g: GameState, renderer: Renderer2D)

FN HUD.rect(x: Num, y: Num, w: Num, h: Num, color: List)

FN HUD.border(x: Num, y: Num, w: Num, h: Num, thickness: Num, color: List)

FN HUD.label(text: String, x: Num, y: Num, scale: Num)

FN HUD.label(text: String, x: Num, y: Num, scale: Num, color: List)

FN HUD.drawGlyph_(glyph, x, y, scale, color)

FN HUD.static measure(text: String, scale: Num) → List

FN HUD.button(text: String, x: Num, y: Num, w: Num, h: Num) → Bool

FN HUD.button(text: String, x: Num, y: Num, w: Num, h: Num, theme: Map) → Bool

FN HUD.static DEFAULT_BUTTON_THEME_

FN HUD.pointInside_(px, py, x, y, w, h)