Jump to content
  • Advertisement
Sign in to follow this  
jeff_rowa

How to create a simple startup screen

This topic is 4236 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, I want to implement a simple startup screen for my game which has "start", "About", "Options" and "Exit" buttons on it, but can you guyz please give me some advice that how should I use it? well I'm implementing the project in Windows using C++ and OpenGL, so should I try to implement it using openGL or MFC or anything else? many tnx

Share this post


Link to post
Share on other sites
Advertisement
This is what I usually expect to happen with a game's menu(I'm guessing this is what you really want your startup screen to be):
1)I run the game from the start menu which becomes full screen
2)I am taken to an option screen where I can load a saved game, start a new game, edit options, start "multiplayer", and maybe some other options depending on what the gameplay allows.
3)If I start a new game I can go back to this menu screen, usually by hitting the escape key, only now the additional options to "return to game" and "save game" are added.

This is all full screen and is run through the graphics API somehow. I believe the OpenGL has a library for this kind of user interface called GLUT ( http://en.wikipedia.org/wiki/OpenGL_Utility_Toolkit ) sorry no link today.

So to answer you question: OpenGL with GLUT, probably.

Share this post


Link to post
Share on other sites
your "startup" screen will usually be implemented as an in-game item using whatever tech your game uses (like OpenGL, and whatever control library you use or write). You normally won't use something like MFC as this would not allow the 2 to be integrated together reasonably. As per nobodynews post, just ask yourself how you would implement any in-game pop-up menu / choice, and implement the startup menu like that.

Now if what you mean is the autorun launcher piece that many programs pop-up when you insert the CD, then that is in fact a different program than your main program, written as a normal application. And some programs support running this type of seperate application after install for doing configuration that might prevent the normal game from launching (you can't very well show an OpenGL menu to change the options, if the users options cause the graphic device to fail creation). In this case you are really still just talking about a launcher app ... a seperate app written in any technology you want (I like .NET personally, but you can choose whatever you like).

Share this post


Link to post
Share on other sites
tnx guyz for your replies, so I should NOT use MFC and instead of that I should use GLUT? the start screen is inside the game so it's not a different app that launches the actual game, so I don't think it's a good idea to use .Net for it.
But by using GLUT should I use "Picking" method or there is a better solution?

Share this post


Link to post
Share on other sites
I'd also recommend creating your menus or startscreen in game.

It's probably easiest to just do bounding box checks to see if your mouse is over/inside your buttons.

But picking is pretty easy too.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!