Jump to content
  • Advertisement
Sign in to follow this  
ICUP

Programming a HUD

This topic is 3610 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What's the general way of programming a HUD? I just need to display life, score, and other information. I thought it was just images/text blitted as the topmost layer (meaning, the last thing to be blitted onto the screen). Is this right?

Share this post


Link to post
Share on other sites
Advertisement
If you're using an old fashioned pixel blitter rendering method then yes, simply blitting your HUD graphics last will serve your purposes well. If you're using a 3D API to do your rendering, you need to do a bit more setup in order to ensure you're drawing in the correct coordinate system. It sounds like you're doing the former however, so just stick to blitting the HUD last.

Share this post


Link to post
Share on other sites
Obviously it will be different depending on your development environment, but doing it as an overlay is generally right.

Unless your HUD is similar to Far Cry 2, which has the map and such completely in game, but that's another story altogether..

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!