Log inGet started
World

Gaugeworks: Health, Shield, Mana and Stamina Bar Kit

README.md

hud

Runs every Bar: it smooths the value, keeps the ghost trail (held for TRAIL_HOLD seconds, then drained at TRAIL_RATE) and flags low warnings.

It lays out the bars:

  • Screen bars go per anchor, scaled to the screen and inside the safe area. Centred bars slide sideways, then step a row. A bar never leaves the screen: it shrinks into a gap if it must.
  • Bars keep clear of the touch buttons and of keepOut rects, and are hidden under cover rects.
  • World bars go over their targets, drawn under the screen bars.

Everything lands on one UI screen, barskit_hud. freeRect finds the room the HUD leaves free. release takes a bar out and hands back the entity made for it, if any, and footprint counts what is registered, for leak tests. Bar components drive the module; build(W, H, t, k) and _step are exposed for tests.