Sign in to follow this  
genericguy

Menus, game states confusion.

Recommended Posts

I was wondering what the general thing to do is with menus. I've completed my basic game engine, made a few levels. Now I want to make a menu. How would you do this? Is it worth making a gui class that's really simple, or use an existing one? How should I decide what to draw/process? Using a state variable? Thanks!

Share this post


Link to post
Share on other sites
You can use the state design pattern. Here's a short article about it.

Regarding the actual rendering of the menu, I guess it depends on what you want. Do you want to program a GUI for this, or do you prefer to spend you time on other things? For many people it's the latter, in which case they just use an existing library. It will save you time and the library will be more robust and feature rich than the (probably simple and limited) solution you'll come up with.

Share this post


Link to post
Share on other sites

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