Main menu
Author |
Message |
chaos
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
ProgrammingFun
![](http://compsci.ca/v3/uploads/user_avatars/11682880074bcb590d30b0a.png)
|
Posted: Fri Jan 21, 2011 5:45 pm Post subject: RE:Main menu |
|
|
Please elaborate...in GUI? |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
chaos
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
TokenHerbz
![](http://compsci.ca/v3/uploads/user_avatars/717170395558e628d9452b.jpg)
|
Posted: 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
|
|
|
|
|
|
![](images/spacer.gif) |
|
|