Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Source code for a Menu System

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

I'm sure Genesis3D has a menu-system included, if the engine has not, it's included in the demo source. Although, there has been a topic on creating a quake-like-console on the lionhead discussion board on www.lionhead.co.uk

I guess working through such big sources as Genesis3D uses takes much more time than writing your own one, so it'd be useless and it's always a good training writing your own stuff.

CU

------------------
Skullpture Entertainment
#40842461

Share this post


Link to post
Share on other sites
Advertisement
Hi
Think of the menuing system as some objects,
for example the options page or the help
page, or the main menu, are all objects
(classes) which have some states like INIT,
KILL, RUN,... and some functions specialy a Focus member function in your main game loop
you do focus all of these objects and they do
their action depending on the state they have
at the moment, moving from main menu to the
options page is as easy as changing the state
of the main menu object into some idle state and the options menu object to RUN state or
something alike, it's similar to FSM ( Finite
Statement Machines ), your exit item or the
game engine are also objects that you do
focus them in your main game loop, this is a
very flexible idea and makes UI coding too
much easier.
I do usualy write the code of the UI system
in our games and use this idea for all games
we have done, it's almost a framework.
hope you have got the idea

------------------
--Ali Seyedof (It's all dark !)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Folks,

I was wondering if anyone can recommend some decent modular menu source code. I wish to implement something along the lines of a Quake-style menu. I've been through the Doom source, and it's fine but it all feels a bit too hard coded. Rewriting my own is an option, but that is reinventing the wheel for the nth time.

Is there any generic menu C/C+ source someone could point me at?

Thanks.

Share this post


Link to post
Share on other sites

  • 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!