Advertisement

Multiple menu's in game

Started by September 29, 2000 11:09 AM
-1 comments, last by GeertPoels 24 years, 3 months ago
Hi, I wondered how to best implement different menu''s in a DX game ? Fe. : main menu, sound/graphics, ... each with submenu''s. Do you implement something like : in your main loop : if (bGameStarted) .... else if (bMainMenu) .... else if (bGraphicsMenu) ... each with calls to drawing routines And the same choices when key_events are processed ? Does anybody have a short but complete enough example of such code ? ciao, Geert

This topic is closed to new replies.

Advertisement