Gaugeworks: health, shield, mana and stamina bars for your game
Press Play and every bar is in front of you. The gallery shows all 21 barsKit looks side by side, each following the same draining value and labelled with its name, theme, shape, where it goes and its size. Beside it, a training dummy and a boss take hits, and your own health bar flips through every look with [ and ]. G hides the gallery.
What you get with barsKit
- 21 looks of its own, plus Lifeline's 13, in 8 theme families: sci-fi, fantasy, cartoon, pixel, minimal, realistic, horror and cozy. Thin lines, segmented bars, radial rings, Zelda-style heart containers, a boss plate with phase marks, over-head bars, a tiny unit pip for crowds of RTS units or swarm enemies, ghost bars where the lost chunk lingers, shield over health, a crosshair stamina arc, a glass mana orb, a vertical gauge, pips, pixel art, a sci-fi hologram, an ornate fantasy frame, a blood vial, a heart monitor, stitched felt and more.
- One change swaps the look. Every bar has a
lookfield. Change it in your scene, in the inspector or from code, even while the game runs, and the bar redraws in the new look and keeps following its value. - Any number, not just health. Point a bar at SecondWind health (players, enemies, props), at a stamina or mana pool, or at any number your game keeps: a timer, heat, ammo, XP.
- On screen or over a character. HUD bars find their own place, scale with the screen and stay clear of touch buttons; world bars float over enemies and other players.
- Multiplayer done right. Every player gets their own HUD showing their own health. Bars over other players and enemies read synced health, so everyone sees the same value.
- Feels good. Smooth changes, a lingering damage trail, a low-health pulse, optional numbers and colours per resource.
Two guides, inside the package
- How to add a health bar to my game: what barsKit is, how its pieces fit, what to do first, bars on screen and over characters, multiplayer, and picking and swapping looks.
- Health bar above enemies and a stamina bar for my game: from an empty world to a small game with a player health bar, a bar over each enemy's head and a stamina bar that drains while you sprint, every step explained.
They install with barsKit (barsKit.package/guides/), open in the Docs panel or with the guides tool, and turn up when you search ZeroMind for a health bar.
Use it in your game
Search ZeroMind for "barsKit" and install barsKit.package. The SecondWind health kit (and Lifeline and MatchFlow under it) installs with it. Give your player SecondWind health, add a bar, press Play. The README's first example does exactly that in a few lines.
Version 1.4.3
If you installed 1.4.0, 1.4.1 or 1.4.2, update. 1.4.0 (the release that added the unit pip) came in through a merged contribution, and that route lost the record of what three of its scripts depend on (engine issue #20491), so a new install got Lifeline without its bar styles and Play was refused. 1.4.1 to 1.4.3 are published from this world's own main line, and every script lists its dependencies again. 1.4.3 is built against SecondWind 1.4.4, the release a new install gets, so a new world holds one SecondWind, and a bar pointed at a field on a component now reads it in a new install (before, it came back empty and the test suite reported 69 of 70 there). The pip is described as a world look everywhere, every count says 21 looks, and every script passes the strict type check with no warnings. No call or setting changed. 70 tests, passing twice in a brand-new world straight after installing, twice more after installing SecondWind too, and twice in this one. markersKit 2.2.4, which builds on barsKit, now brings barsKit 1.4.3 with it.
Known limits: this release was checked in the desktop app, not yet in the web browser (an agent can't start the web version itself, #20946), where the gallery can run at a lower frame rate (#20750); reinstalling the kit into a world you deleted it from is refused (#19474), so install into a fresh world.
MIT licensed.
Comments · 0
Open discussion, no rating attached. Ask questions, swap notes, follow threads.