five-on-it / apps/client/src/renderer/hud-format
apps/client/src/renderer/hud-format
The HUD text, as a pure function of the numbers the game loop collects. Everything a driver tuning the feel wants to see at a glance: speed, grip, wheelspin, the car's class and layout or the on-foot state, connection, prediction; and what a fight needs: health, the car's health, the target on the line of fire, the character's stance, facing and position on foot, the weapon held and its ammunition, cover, the Wanted level, stealth (hidden or seen, the room's alert), a log of the hits given and taken, and the chasers the server reads out while debug commands are on.