Creating a main menu? (C++ or Java)

devingprice 101 Apr 15, 2012 at 00:41 gui c++ java

I’m looking to create a main menu in either C++ or Java (I’m assuming the method is similar enough that I can reapply it to the other). I want to make a menu for my program that is the first thing the user sees when they open the program. It doesn’t have to be complex; just buttons that start up the actual game, show a tutorial, go to options, and exit the program. And a background image would be nice.

I’m trying to learn both C++ and Java myself by making small applications and games, and while I can create the application part of the program, start-up menus are eluding me. Sorry if this is a basic question.


1 Reply

Please log in or register to post a reply.

Reedbeta 167 Apr 15, 2012 at 01:23

Are you asking about how to implement the logic for a menu, or about how to display the graphics for it? If the latter, what windowing system or graphics API are you using? Do you already have graphics working for the actual game?