Skip to main content

Module hud

Module hud 

Source
Expand description

Heads-up display drawn over the 3D view (resolution independent).

Enums§

Anchor
Horizontal anchoring for virtual 320x200 HUD coordinates on wide screens.

Functions§

draw
draw_qav
Draws a QAV frame (weapon) in 320x200 virtual space, centred horizontally.
draw_text
font_base
First tile of Blood font n (characters start at ASCII 32).
font_glyph 🔒
Glyph tile for c in font, falling back to other Blood fonts when the font lacks it (the big menu font has no digits or punctuation). Returns (tile, y offset to keep the glyph on the same baseline).
glyph 🔒
Built-in 5x7 font (OpenBlood’s own), rows top to bottom, 5 low bits per row.
inventory_hud
Inventory selection, power-up timers and breath meter.
status_bar
The original-style compact status display (health/ammo boxes and key panel).
status_number 🔒
Number drawn with Blood’s status digit tiles (base = tile of ‘0’).
text_width
tile_text
Draws text with a Blood tile font; returns the width drawn.
tile_text_width
Width in virtual pixels of text in font n.
tint 🔒
vtile
Draws tile pic with its top-left corner at virtual (vx, vy) (320x200 space).