Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help Me How to Make a Main Menu

Author
Message
davidbillmanoy
11
Years of Service
User Offline
Joined: 7th Aug 2013
Location:
Posted: 15th Aug 2013 04:37
Hi! I want to make a main menu but idk how to do it.
davidbillmanoy
11
Years of Service
User Offline
Joined: 7th Aug 2013
Location:
Posted: 16th Aug 2013 02:27 Edited at: 16th Aug 2013 20:51
Also I want to do a Splash Screen too and go to the different menu and game.
davidbillmanoy
11
Years of Service
User Offline
Joined: 7th Aug 2013
Location:
Posted: 17th Aug 2013 05:20
The entire game:


Help me! I want to go to the game from the main menu.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Aug 2013 05:39
Look through the source code to my game Looper.
davidbillmanoy
11
Years of Service
User Offline
Joined: 7th Aug 2013
Location:
Posted: 17th Aug 2013 21:14
WickedX can you show me the code of how to get from the menu to the game?
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Aug 2013 04:13 Edited at: 18th Aug 2013 04:24
Here is the main loop. I cleaned it up a bit to make it easier to follow. The global variable g_GameState is initialized to 1 in the Initialize() function. If the Play menu item is clicked in the MainMenu() function the g_GameState variable is changed to 2 causing the main loop to skip the other cases and perform the PlayGame() function.

TimmyTopHat
11
Years of Service
User Offline
Joined: 29th Aug 2013
Location:
Posted: 29th Aug 2013 03:25
Here's a good article for this kind of thing:
http://gamedevgeek.com/tutorials/managing-game-states-in-c/

Indie Programmer - DirectX 11

Login to post a reply

Server time is: 2024-11-18 21:47:09
Your offset time is: 2024-11-18 21:47:09