How to create a game menu with states

I was and was looking for an example of how to create a game menu. For example, I want to open an application for this menu. From there, he will either open the “game” or “Show credits” “Exit”.

Everything I've seen so far for popup menus.

So, the answer I'm looking for concerns the use of “states” such as pause state, game state, etc. But I can’t understand how it should be, and how to use it. Unable to create MenuState and can not find an example somewhere

Using glut and freeglew

+5
source share
1 answer

GUI execution

, , , , , , . , - .

, (GLUT, SDL ..).

, , CEGUI, FLTK , .

- uesr . DFA . , api, GameState. , .

, , , "" .

DFA , node DFA. ( ..).

, , . , , , . , , .

: https://bitbucket.org/iwillspeak/thulium/src. GameState - . GameStateFactory. SampleState - .

+6

All Articles