Sign in to follow this  

Programming a HUD

This topic is 3296 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
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

This topic is 3296 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this