Jump to content
  • Advertisement
Sign in to follow this  
Dev48GameDev

Creating menus ...

This topic is 4891 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

Hello! I post some threads about 3D engine or network programming. Lots of answers thanks to everyone!! Thanks GameDev! But I do not know how to do such a simple thing than a menu!! Indeed, creating a 3D engine with lot of special effets which works with 120 frames per second is great for your game. But creating menus is also a thing which I believe, is very important!! I just want to know how can I crete these Menus (Fifa like, or DungeonKeeper Like). How can I do Transitions between each menus? Do I have save menu in file first and read this file? Do I have to use so famous XML? Do I have Lua to scipt transition or action for every button? I hope you'll understand what I want to know Thanks in advance! DEV

Share this post


Link to post
Share on other sites
Advertisement
Hello,

Once you know how to draw on the screen, displaying a menu is not the hard part: you just render some quads with text on the screen. If you know hao to handle the mouse, then you're done.

Designing a menu system is not that hard. It has to do with UI and game states. By clicking on a menu option, you go from one state to another. Each time you click on a meun option, you load the new game state - it may be "optino panel", "exit" or "new game".

Now, you can do whatever you want during the transitions (animations, fade, and so on) - it is entirely up to you :)

The main thing is: you dont HAVE to use a particular technology. Technologies are just tools. One can want to use XML setup the text of each menu option, but it is not necessary to do so. If you want to create a scriptable game (remember: script the things that need to be scripted. It is totally useless to script the option screen , for example), then Lua might help you to link one menu to another. But the link can be hardcoded as well - there is nothing wrong with it, since menu games don't change often (an a lua script is still some code).

To help you to choose the right way, remember to always perform these action when you want to create a software:
1) list your requirements
2) link the requirememts together
3) design your software (I mean: try to think to how you will implement your software)
4) choose the technology
5) code :)

HTH,

Share this post


Link to post
Share on other sites
Creating your own menu GUI system is such a pain, but the solution many people take as you don't have to learn a completely new third party library. Crazy Eddie's GUI seems to be the most powerful open-source GUI system available at the momment. If you're brave enough, you could check it out.

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!