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.

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.

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.

This article has been dead for over six months. Start a new discussion instead.