Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Creating a simple Game Menu / Screens?  (Read 440 times)
0 Members and 2 Guests are viewing this topic.
Offline Shane75776

Full Member
**

Posts: 151
Medals: 3



« on: 2012-01-12 04:10:36 »

I am currently working on a game called Epic Stubble Man which you may have seen in the showcase area
and I am at that point where I would like to create a simple game menu.

What I am looking for is possibly a tutorial, nothing to advanced as I will pick it up
as I go.

Basically, what I have in mind is to keep it simple, just really want 4 menu options.
-New Game just starts the game, no new screens besides the game canvas
-Continue same as above
-Highscores Goes into 1 other screen with a back button
-Credits Goes into1 other screen with a back button

I tried googling around but could not find much of anything, so if anyone knows of any
please if you can give me a link to a tutorial on this.

Thanks in advance.
Offline Magn919

JGO n00b
*

Posts: 8



« Reply #1 on: 2012-01-12 09:47:51 »

Sounds like you would want to use a statemachine for the different screens.
As example, create a mainmenu state that shows the buttons for each option.
The gameplay, highscores and credits would go in states of their own.

For every new problem, a new source of solutions has come to exist.
Offline Shane75776

Full Member
**

Posts: 151
Medals: 3



« Reply #2 on: 2012-01-12 10:44:08 »

Well I know that much, I already attempted it myself for a bit but got lost
and things didnt work out. which is why I am asking for a simple tutorial
or something to get me started.

I think if I had that, I could pick it up and understand it a lot better.

Games published by our own members! Go get 'em!
Offline ra4king

JGO Kernel
*****

Posts: 3153
Medals: 196


I'm the King!


« Reply #3 on: 2012-01-12 21:42:34 »

Here is a post about state-based games.

Offline Shane75776

Full Member
**

Posts: 151
Medals: 3



« Reply #4 on: 2012-01-14 02:58:02 »


Thanks, that helped a ton.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.053 seconds with 19 queries.