3 Replies - 4258 Views - Last Post: 25 February 2011 - 03:50 PM Rate Topic: -----

#1 shab1111   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-February 11

making a game in java

Posted 25 February 2011 - 02:59 PM

wondering how you would make a new level for a game. Also want to have pause and resume buttons. Would I need a Listener method for that?
Iv searched for info online but can't seem to find a website that can help me out!
Is This A Good Question/Topic? 0
  • +

Replies To: making a game in java

#2 Dworza   User is offline

  • D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 172
  • Joined: 13-February 11

Re: making a game in java

Posted 25 February 2011 - 03:05 PM

View Postshab1111, on 25 February 2011 - 02:59 PM, said:

wondering how you would make a new level for a game. Also want to have pause and resume buttons. Would I need a Listener method for that?
Iv searched for info online but can't seem to find a website that can help me out!


some tutorial, how to make a 2D game in java can be found at youtube from the user mrjavahelp !-]

This post has been edited by Dworza: 25 February 2011 - 03:06 PM

Was This Post Helpful? 0
  • +
  • -

#3 GregBrannon   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2250
  • View blog
  • Posts: 5,340
  • Joined: 10-September 10

Re: making a game in java

Posted 25 February 2011 - 03:07 PM

There are specific resources here on DIC for game programming. Try looking through those for ideas.

A new level to a game is just doing more of the same, usually with a slightly different theme or in a new location, etc., but you probably understand that better than I do. You would enter the new level after achieving a certain score, collecting required tokens, killing all the aliens in the current level, etc.

Listeners are interfaces, and adding a pause and resume feature could be done by using a listener that detects a button or key press and then programming the code as you need to pause, then resume. I'm sure there are other ways.
Was This Post Helpful? 1
  • +
  • -

#4 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12691
  • View blog
  • Posts: 45,880
  • Joined: 27-December 08

Re: making a game in java

Posted 25 February 2011 - 03:50 PM

This goes a lot into maintaining program state. I highly recommend that you check out some of the tutorials listed on the Java Game Programming Thread, including Dogstopper's blog entry on state machines.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1