Log inGet started
Package

GameHud.component

Newest version

README.md

GameHud

Everything drawn on the screen. Attached to the hud entity by the scene.

Registers five screens and keeps them in step with game.shift:

  • cs_title — the title card: CHAINSAW / SIMULATOR and the shift menu.
  • cs_order — the paper order docket pinned top right, CUTS n OF m.
  • cs_gauge — the RPM dial's static half (registered again only when the canvas changes), and cs_gauge_needle, its per-frame needle and heat.
  • cs_controls — the controls strip, printed once when the shift begins.
  • cs_payslip — the stamped pay slip, from Shift.summary().

The title's START SHIFT calls Shift.begin(); the slip's button calls Shift.reset(). The HUD never writes the saw's or the workpieces' fields.

Siblings it needs: game.saw.ChainsawRig (writes rpm/heat/stalled), game.workpieces.WorkpieceSystem (writes pieceKey/pieceRemaining and calls Shift.addCut). Everything under game/ui/ is this component's.