Java Game Program
I am new to java but I need to make a basic game abit like duck hunt I have around 80 days to achieve this. but as I dont really know where to start im very lost. The first question I had is my game is going to have 4 pages to it a main menu, the game itself,your score page and then a highscore page as well. I wanted to know how you can get 4 pages on netbeans I belive it has something to do with Jpanels but dont know anything else. can anybody help me with this question?
Many Thanks Dan
What do you mean by "4 pages"? Do you have an example from a common program that most of us use? If talking about changing panels during different states in the program, then you may wish to look at the CardLayout which allows you to swap JPanels (and other Components) as if they were cards on a deck. You'll find a tutorial here: The CardLayout Tutorial
What I meant by 4 pages was like the program starts on the main page where you will be able to select new game, highscores and quit. what i wanted was for the user to click on new game which then starts the actual game where they have to shoot sonic the hedgehogs that appear random on the page. and also when the game ends the user would be taken to the page which displays his score. then also from the main page if the user clicks on highscore they will be taken to another page that displays the highscores. does this make anymore sense about the 4 pages.
OK, then I think a CardLayout should fit your bill nicely here. Check out the link above and I think that you will agree. Good luck.