Java game

Reply

Join Date: Jun 2009
Posts: 11
Reputation: aakaashjois is an unknown quantity at this point 
Solved Threads: 0
aakaashjois's Avatar
aakaashjois aakaashjois is offline Offline
Newbie Poster

Java game

 
0
  #1
Oct 5th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,810
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Java game

 
0
  #2
Oct 5th, 2009
Originally Posted by aakaashjois View 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.

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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 11
Reputation: aakaashjois is an unknown quantity at this point 
Solved Threads: 0
aakaashjois's Avatar
aakaashjois aakaashjois is offline Offline
Newbie Poster

Re: Java game

 
0
  #3
Oct 5th, 2009
Originally Posted by VernonDozier View Post
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.
Reply With Quote Quick reply to this message  
Reply


Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC