Can anyone recommend a template for a game menu?
Most games have the same basic choices for a root menu with Play, Options, and Quit at a mininum and some other pretty common ones as well, such as Create Player.
Within Options there will typically be Audio, Video, Graphics, Controls and possibly others.
What I'm wondering is whether there is/are some code snippets somewhere that becomes a skeleton for everything but the gameplay itself.
I'd love to see some discussion here about favorite methods as well; for example, the use of a Menu custom type would change everything, but might be too cumbersome?
(Note that I am not talking here about GUIs; Putting the menu on the screen is not the issue. I'm more interested in what's under the surface.)
If there is another post on this feel free to point me to it; "game" and "menu" are hard terms to search on! :)
Thanks in advance.
Most games have the same basic choices for a root menu with Play, Options, and Quit at a mininum and some other pretty common ones as well, such as Create Player.
Within Options there will typically be Audio, Video, Graphics, Controls and possibly others.
What I'm wondering is whether there is/are some code snippets somewhere that becomes a skeleton for everything but the gameplay itself.
I'd love to see some discussion here about favorite methods as well; for example, the use of a Menu custom type would change everything, but might be too cumbersome?
(Note that I am not talking here about GUIs; Putting the menu on the screen is not the issue. I'm more interested in what's under the surface.)
If there is another post on this feel free to point me to it; "game" and "menu" are hard terms to search on! :)
Thanks in advance.