944,065 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2477
  • Java RSS
Oct 5th, 2009
0

Java game

Expand Post »
hello guys,

Can any of you help me create a game in java??

There has to be two paddles, one at the top and the other at the bottom. The paddles have to stop the ball from getting out of the screen. The ball cannot leave the screen from the left or the right.

Can you please help me??






Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aakaashjois is offline Offline
21 posts
since Jun 2009
Oct 5th, 2009
0

Re: Java game

hello guys,

Can any of you help me create a game in java??

There has to be two paddles, one at the top and the other at the bottom. The paddles have to stop the ball from getting out of the screen. The ball cannot leave the screen from the left or the right.

Can you please help me??






Thanks.

Yeah, we can help you, but you're going to have to get way more specific. To start, to use animation, you're going to have to learn Java Swing. For animation, you need to learn about timers. You have to decide whether there are any human players in this game. If so, you're going to need some way for the person or persons to control the paddles, which means you need to learn about either Key Listeners or Mouse Listeners or Action Listeners or more than one of them. Since you're using timers, you may need to learn about the Runnable class and/or Threading. Here's your main page for Java tutorials.

http://java.sun.com/docs/books/tutorial/

We have no idea what you know already. You may know all this stuff, in which case, again, you need to ask a far more detailed question.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,375 posts
since Jan 2008
Oct 5th, 2009
0

Re: Java game

Yeah, we can help you, but you're going to have to get way more specific. To start, to use animation, you're going to have to learn Java Swing. For animation, you need to learn about timers. You have to decide whether there are any human players in this game. If so, you're going to need some way for the person or persons to control the paddles, which means you need to learn about either Key Listeners or Mouse Listeners or Action Listeners or more than one of them. Since you're using timers, you may need to learn about the Runnable class and/or Threading. Here's your main page for Java tutorials.

http://java.sun.com/docs/books/tutorial/

We have no idea what you know already. You may know all this stuff, in which case, again, you need to ask a far more detailed question.

I only know basic java. I don't know how to use Java Swing.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aakaashjois is offline Offline
21 posts
since Jun 2009
Aug 4th, 2010
0
Re: Java game
me too.. we need to do a paddle game .. but i can't do it..
can you help me?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mizuki08 is offline Offline
1 posts
since Aug 2010
Aug 4th, 2010
0
Re: Java game
i am working on the same i have created the ball coding , the paddles but game coding is left i posted the ball coding it needs to be modified a little bit for moving in x direction as well but hope it will be helpfulhttp://www.daniweb.com/forums/thread299409.html
Last edited by gauravk_bhanot; Aug 4th, 2010 at 3:39 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gauravk_bhanot is offline Offline
24 posts
since Jun 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java Loops
Next Thread in Java Forum Timeline: Whats wrong with the Array ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC