Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How to Make A Menu

Author
Message
vitinho444
13
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 9th Mar 2011 10:49
Hey guys, i wanna make a menu for my game.
How can i make it?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Neotron
14
Years of Service
User Offline
Joined: 21st Jul 2010
Location: I am in an underworld , making a E.Army
Posted: 9th Mar 2011 11:14
OK i might be able to help you with this , but don't read this if you can't make your own modified code.plus this will help you to get started

int mainmenu()
{
int sel=0,exit=0;
while(exit==0){
if(sel==0)
dbInk(dbRGB(255,0,0));
dbText(0,0,"Start Game");
dbInk(dbRGB(255,255,255));

if(sel==1)
dbInk(dbRGB(255,0,0));
dbText(0,0,"I don't know anything");
dbInk(dbRGB(255,255,255));

if(sel==2)
dbInk(dbRGB(255,0,0));
dbText(0,0,"Exit");
dbInk(dbRGB(255,255,255));

if(sel==0)
{
if(dbReturnKey==1)
exit=1;
if(sel==2)
{
if(dbReturnKey==1)
end();
}

ALLAH IS THE GREATEST
May he forgive me
Neotron
14
Years of Service
User Offline
Joined: 21st Jul 2010
Location: I am in an underworld , making a E.Army
Posted: 9th Mar 2011 11:19
WTH , i did put in code button in there. Oh well............

ALLAH IS THE GREATEST
May he forgive me
vitinho444
13
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 9th Mar 2011 15:02 Edited at: 9th Mar 2011 15:09
ok..
thanks i will try

@edit

to make a menu where i put the menu code to menu appear first?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Superdeath360
13
Years of Service
User Offline
Joined: 23rd Nov 2010
Location:
Posted: 14th Mar 2011 23:53
Before game loop

herp derp
Wikaman1
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 15th Mar 2011 05:31
here's my tutorial I did a while ago on how to make a menu.

http://www.youtube.com/watch?v=aMtSIy215Cs
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 15th Mar 2011 14:18
http://forum.thegamecreators.com/?m=forum_view&t=178271&b=22
Try this. If you like it I'll upload the most current version. If you want to make one yourself, feel free to look over the code. If you want a tut, I'll help also.

The fastest code is the code never written.
vitinho444
13
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 15th Mar 2011 16:15 Edited at: 15th Mar 2011 16:17
Quote: "Before game loop
"


Thanks

Quote: "here's my tutorial I did a while ago on how to make a menu.

http://www.youtube.com/watch?v=aMtSIy215Cs"


Ah this is you? Nice games you have, i followed the tut about FPS and the 2D Platform.

Thanks a lot
Quote: "
http://forum.thegamecreators.com/?m=forum_view&t=178271&b=22
Try this. If you like it I'll upload the most current version. If you want to make one yourself, feel free to look over the code. If you want a tut, I'll help also.
"


Thanks
__________

I will use the 3 of you and make a nice combo xD

Thanks alot for the replies .

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
vitinho444
13
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 15th Mar 2011 21:21
@Neotron

to call the actual game what i do?

if(sel==0)
{
dbInk(dbRGB(255,0,0));
dbText(0,0,"Start Game");
dbInk(dbRGB(255,255,255));
}

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5

Login to post a reply

Server time is: 2024-09-28 12:37:35
Your offset time is: 2024-09-28 12:37:35