Jump to content
  • Advertisement


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



This topic is 6683 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 am making my first game (A pong clone) and am getting to the point where I need to write code for a menu system and was wondering what the best way to go about this would be. Here''s how my game is set up: I have these classes: CDirectDraw CDirectInput CError I have these game functions GameLoop() GameDraw() GameInput() GameProcessKeys() GameMoveObjects() GameInit() GameDestroy() I was thinking maybe a class for the menu system but I don''t know

Share this post

Link to post
Share on other sites
or just make a GameMenu(), which loops through and sees if the user is selecting any of the menu items, then change the game state and call the appropriate function


case NEW_GAME:

case QUIT:

you get the idea..

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!