
-----------------------------------
revangrey
Mon May 31, 2010 12:10 am

Implementing a Main Menu for options
-----------------------------------
I was wondering how to make a main menu that would call several game programs (all in java) using the RTP IDE most likely.

I am trying to make a sort of small arcade type thing with a few simple games: pong, some dodging thing, a very simple pacman, maybe a bullet hell (probably not), I don't really know.

Of course I can't ask my teacher anything because she has been gone for most of this year, and the rest of this year.

Supply teacher doesn't know anything about compsci so yeah.

I don't necessarily have to use RTP but my teacher is 100% likely to run our code in it when she is going to mark.

Also if anyone has beforehand tips on making the AI for the ghosts in pacman (if i even put them in) then it will be much appreciated!

Thanks in advance, and advice/suggestions are appreciated!

-----------------------------------
Tony
Mon May 31, 2010 12:24 am

Re: Implementing a Main Menu for options
-----------------------------------
Also if anyone has beforehand tips on making the AI for the ghosts in pacman (if i even put them in) then it will be much appreciated!
This is a fascinating read -- http://home.comcast.net/~jpittman2/pacman/pacmandossier.html

-----------------------------------
TerranceN
Mon May 31, 2010 3:20 pm

RE:Implementing a Main Menu for options
-----------------------------------
We would need more information, especially how encapsulated your games are. Are they all in one method? Are they in multiple static methods? Or are they fully OO? Also we would need to know how complicated a menu do you want. Do you want something console based like this:

import java.io.*;

public class Main
{
    public static void main(String

Or do you want a full graphical menu like in my [url=http://compsci.ca/v3/viewtopic.php?p=215507#215507]Geometry Wars Clone(you can download the source and look at the Menu and MenuItem classes)?

Hope that helps
