• Advertisement
Sign in to follow this  

Game Menu

This topic is 4327 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 was just wondering. i am new to programming in c++ but i wanted to know how to make a menu in c++. I can do it in dos but i want it to look like ut2004 menu or diablo although diablo was written in vb. What do i need to learn and get to make at least the menu in c++

Share this post


Link to post
Share on other sites
Advertisement
Designing a menu like that lies more on the artistic field, programming it isn't very hard. Actually if you know how to do a menu in dos, like you said you could, then you're pretty much set for programming and doing one in gfx.

Basically what more you need to be able to do is:
Make som images for the different menu options, for example one for the menu option "active" (that is mouse arrow on it) and one for the menu option "deactivated" (no mouse arrow on it). Next draw these images on screen. Don't know how to do this? Read up on direct X, SDL or whatever API suits you best.

Then you simply check for a "collision" between the mouse pointer and the images and simply change the image, just like a rollover effect for a website.

Like I said, designing a good looking menu like this is more of an artistic thing. [smile]

[Edited by - DayZero on April 7, 2006 12:19:50 PM]

Share this post


Link to post
Share on other sites
well lol i am not that ghood of an artisst and my friend will draw for me, but i am going to use direct x as my api. I am a very low level programmer, ie i just started 2 weeks ago, and am learning the hard way but the way i learn best. i need to know how to incorporate the buttons into a menu. its just like dreamweaver but i am slow plz help lol

Share this post


Link to post
Share on other sites
I'm pretty sure Diablo was written in C, but that's immaterial. You need to get started with a graphics API like OpenGL, SDL or DirectX -- I personally recommend SDL but you can use whatever you want.

Share this post


Link to post
Share on other sites
Quote:
Original post by kingsrookie
no it was written in vb because thats why there are bots on the game but i will start with directx api


That is some fascinating reasoning, but in the end I'm pretty sure it's not correct.

Share this post


Link to post
Share on other sites
DayZero pretty much hit the question on the head.

Quote:
Original post by Telastyn
That is some fascinating reasoning, but in the end I'm pretty sure it's not correct.


I argue that all goods sold in America are also made in America. I can't imagine the Chinese would have any argument with this!

Quote:
Original post by kingsrookie
no it was written in vb because thats why there are bots on the game but i will start with directx api


I think Diablo was made in C, and I know Diablo II was made in C++ -- various references in DLLs to .cpp at the very least suggest it's the most likely.

And the bots you're thinking of work because some fanciful fellow figured out how to embed a version of the javascript engine into Diablo, allowing them to run all sorts of nifty functions. The spammer bots though are likely just a basic client that doesn't even have Diablo, just something that knows b.net's communication protocol.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement