The Undercroft: A Co-op Roguelite Dungeon Crawler
README.md
game.hud
The Undercroft's own HUD pieces, drawn beside arpgKit's classic HUD and runLoopKit's floor strip, from installed kits only:
- Party portraits (portraitPartyKit on portraitKit): every pilgrim in the room as a live 3D portrait in the
horrorlook, lit by flickering firelight inside an arched frame on a glow, with a blood health bar read from SecondWind (through barsKit). A hit flashes the face and leaves a ghost on the bar; a hero at no health or downed (arpgKitheroDowned) shows KO with a hurt face untilheroRevived. Desktop: a column on the left, below arpgKit's stats button and room tracker. Phone: a column on the right, under Bag/pause and above the minimap. Kept cheap: 144 px renders (128 on a phone), 5 idle renders a second, at most 2 portrait renders a frame, a 45 fps target for the kit's governor. - Minimap (navUiKit): the gothic look, a
fogminimap that uncovers the floor as you walk it, baked from the floor's colliders after arpgKit'slevelBuilt(and again 0.6 s later, once the walls stand), bounded to the floor's rooms, a door icon on the stair room and a skull on the last room (gold on a floor, red on the boss floor). Bottom right on desktop and phone (right of arpgKit's globes and of its phone skill cluster). M or a tap opens the full fog map. No compass, objectives, toasts or waypoint parts, so runLoopKit's top-centre strip and the boss bar stay clear.
Each player gets an hp function of its own: portraitPartyKit 1.0.6 otherwise reads back the share it last wrote with Portrait.health before asking barsKit, so a members = "players" bar froze at its first reading.
Calls (the director makes them)
Hud.setup()once per peer at init: listens to arpgKit; shows nothing.Hud.onFloor(floor, isBoss)when a floor starts: portraits and the minimap on (re-run safe; the minimap re-bakes on everylevelBuilt).Hud.toCamp()at camp andHud.hideAll()on title, game over, victory and summary screens: both off.Hud.state()for tests:{ mode, party, minimap, members, boss }.
Cost (desktop editor, measured in play with the rest of the game running)
NavHud (fog minimap) about 1.7 ms median per frame (a plain round minimap is 0.6 ms; the fog is what was asked for), PartyFrames about 1.3 ms, plus one small portrait camera pass per pilgrim at 5 renders a second while idle.