Thoughts on revised approach to UIWorldSpaceHealthBar #244
ConquerProgramming1
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Ah discussed in #103 -- will try out UIProgressBar and see if it fills the bill... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love the health bar class, it looks great and functions great and saves lots of implementation effort for game creators, but I'm thinking a revised approach is worth considering. If this is something that is of interest, I'd be willing to challenge myself by taking a crack at it.
Health is just one kind of status
Looking at the games I play and the game I'm working on, here are common uses of status bars:
Health (duh!)
Armor
Mana/Energy/Fatigue
Build progress (for example, a building that generates units, or is researching a technology)
Recuperation progress (non-killable player character recovering from getting knocked out)
Given the non-health uses, at minimum it would be nice to have a more generalized class that tracked a specified criteria, rather than requiring specific health attributes.
If one is good, three must be better!
It's particularly common to display both a health bar and a mana/whatever bar, and in some cases I've seen three bars used.
A generalized class could be used to do separate bars, but it would also be helpful to provide a container-type class that could be easily configured for 2-3 bars and take care of the positioning hassle, such as distance between bars.
Thoughts on any of this?
Beta Was this translation helpful? Give feedback.
All reactions