DesignGddHUD

HUD

Status: Designed Author: user + game-designer Last Updated: 2026-03-28 System Index: #19 — Alpha, Polish Layer

Overview

The HUD is a persistent overlay visible during non-menu scenes (Map, Combat, Reward, Rest). It displays essential run information — player HP, teammate HP, and run progress — so players always have context without needing to check a separate screen. During combat, the HUD is minimal since Combat UI handles detailed resource display. Outside combat, the HUD is the primary status display.

Player Fantasy

"I always know where we stand." A quick glance tells you how healthy the team is and how far you are in the run. No need to memorize numbers between screens.

Detailed Design

Core Rules

  1. HUD is an always-on-top CanvasLayer, visible in Map, Combat, Reward, and Rest scenes.
  2. During combat, HUD minimizes to avoid duplicating Combat UI information (only shows teammate HP summary).
  3. HUD reads from RunData — no independent state.
  4. HUD is display-only — no interaction.

Layout (Map/Reward/Rest)

┌─────────────────────────────────────────────────┐
│ ♥ 45/60  P2:♥52  P3:♥30  P4:♥60    Node 4/8   │
└─────────────────────────────────────────────────┘
ElementContent
Player HPOwn HP / max HP with heart icon
Teammate HPAbbreviated HP per teammate
Run progressCurrent node / total layers

Layout (Combat — minimal)

During combat, Combat UI shows detailed resources. HUD reduces to:

┌──────────────────────┐
│ Node 4/8             │
└──────────────────────┘

Interactions with Other Systems

SystemDirectionInterface
Player ResourcesReadsHP values for all players
Game State ManagerReadsCurrent node index, layer count, current game state (to toggle minimal mode)

Formulas

None.

Edge Cases

CaseResolution
Dead playerShow HP as "0" with greyed-out or crossed-out style
Player disconnectedShow "DC" instead of HP
1-player gameNo teammate HP section — just own HP and progress

Dependencies

Upstream

SystemDependency TypeInterface
Player ResourcesHardHP values
Game State ManagerHardRun progress, current state

Downstream

None — display only.

Tuning Knobs

KnobDefaultSafe RangeAffects
hud_opacity0.90.5-1.0Visibility vs. screen obstruction
hud_positionTopTop/BottomLayout preference
combat_minimal_modetruetrue/falseWhether HUD hides during combat

Acceptance Criteria

#CriterionVerification
1HUD visible on Map screen with HP and progressVisual test: enter map, assert HUD shows HP and node count
2HUD minimizes during combatVisual test: enter combat, assert HUD shows only progress
3Teammate HP updates in real-timeIntegration test: teammate takes damage, assert HUD updates
4Dead player shown distinctlyVisual test: player dies, assert greyed HP display
Built with LogoFlowershow