∞ forever components

Progress & Status

Boss Health Bar

Boss Health Bar control in the 8-Bit Gaming system.

cssmedium complexitymoderate motionclickaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

A combat or boss-fight HUD where a segmented health bar drops on each attack and the boss can be revived.

When not to

Real health or progress reporting, where the value must come from data and not a random hit.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Edit totalSegs (16), the damage roll inside attack() (1 or 2 segments, shown as dmg*120), and the phase thresholds (curHp <= 8 and curHp <= 4). Colours live in .bg04-segment (#E52521), .bg04-subbar (#FFCC00) and .bg04-btn. Keep the idle demo, the forever:interactive handler and the polite status region on #bg04-hpText.

Safe to edit

  • Segment count and damage roll (totalSegs, attack())
  • Phase labels and thresholds
  • Boss name and button text
  • Palette (.bg04-segment, .bg04-boss-name, .bg04-subbar)

Keep intact

  • First deliberate attack stops idle combat demo; the clicked attack state applies once.
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

arcade8-bitpixelretrogamingmicroswitchboss-health-barprogresshealth-barstrobedamagemeter8-bit-gamingrpghud

More Progress & Status components

  • Linear ProgressOlive-to-slate gradient bar fills left-to-right with a leading edge marker, live percent readout, tick scale, and status dot; cycles fill → hold → reset…
  • Segmented StepperFour-step circular stepper auto-advances, filling connector segments with a raised jade fill and stamping SVG checkmarks as each step completes.
  • Upload ProgressCircular rust-toned ring fills to 100% with a leading dot and numeric readout; completes with a green checkmark draw-in. Auto-cycles.
  • Skeleton LoaderDark content-card skeleton with avatar, text rows, thumbnail, and pills swept by a staggered denim-blue diagonal shimmer and a breathing radial pulse.
  • Battery ChargeGraphite battery cell with a recessed smoked-glass window that fills in flat persimmon, saffron and jade bands from 4% to 100% over 6 s, with a percent…
  • Multi-TrackFour color-coded bars (ingest, transcode, index, publish) fill at staggered ease-out rates with a live N/4 complete counter; auto-resets after all finish.