Jump to content

  • Log In with Google      Sign In   
  • Create Account

Source code for a Menu System


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 28 September 1999 - 08:06 AM

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.


Sponsor:

#2 NuFAN   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 September 1999 - 11:18 AM

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


#3 Pietari Laurila   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 September 1999 - 09:38 AM

Also, check out www.twilightminds.com. We have something really cool in development -- it's not quite ready to show yet though.

#4 Seyedof   Members   -  Reputation: 123

Like
Likes
Like

Posted 28 September 1999 - 08:06 AM

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





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS