I just finished the code to display the health bars in my current
project (a squad-level, turn-based strategy game - currently in
month 2 of a 2 year dev cycle).
Written with VC++ 6.0 and DirectX 7.0. You'll need DX 7 to have
to run this (sorry I haven't included a DX version check/update
Pretty simple right now. You control the health with the up (more
health) and down (less health) arrows. The color of the health
bar changes as the health increases or decreases, reprenting the
overall health status a little better. Of course, in the final game
the health will be controlled by the troopers combat results, the
arrow key is just used for debugging right now.
All the graphics were done in POV-Ray (version 3.1), which is a
great freeware ray-tracer written in C/C++.
Oh, and I realize that the health bar is REALLY big compared to
the trooper (robot, in this case). This is VERY early alpha artwork.
The health bar will be reduced to a more realistic size in it's next
(actual Alpha) incarnation.