Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Main menu
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chaos




PostPosted: Fri Jan 21, 2011 5:42 pm   Post subject: Main menu

How would i go about creating a main menu ehich includes play,settings, and instructions for a game?
Sponsor
Sponsor
Sponsor
sponsor
ProgrammingFun




PostPosted: Fri Jan 21, 2011 5:45 pm   Post subject: RE:Main menu

Please elaborate...in GUI?
Insectoid




PostPosted: Fri Jan 21, 2011 7:00 pm   Post subject: RE:Main menu

You need to put everything into separate procedures, ie the game is in a procedure, instructions are in a procedure, settings are in a procedure, etc. You then need to create some way of allowing the user to call those procedures, weather by text or buttons.
chaos




PostPosted: Sat Jan 22, 2011 10:42 am   Post subject: Re: Main menu

I understand connecting that part, but its the part of connecting what procedure to what procedure that confuses me. I might start out with text first, and then convert everything to GUI
TokenHerbz




PostPosted: Sat Jan 22, 2011 10:50 am   Post subject: RE:Main menu

okay so have it set up so if "ESC" key is pressed, "brings up the menu" // lets you change things in this menu. when your done, you go back to the game... Heres a VERY basic idea.

code:

proc menu
     loop
          menu stuff here
          exit when menu stuff is done
     end loop
end menu

loop
     inputs
     if inputs = menu call then
         call menu
     end if
     game stuff here
     draw game stuff here
end loop
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: