| | |
Java game
![]() |
•
•
Join Date: Jan 2008
Posts: 3,810
Reputation:
Solved Threads: 501
•
•
•
•
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.
![]() |
Similar Threads
- java game code (Java)
- High CPU usage with simple Java game (Java)
- Java Code for interesting Java Game (Java)
- Java Game Characteristics (Java)
- Java Game Characteristics (Java)
- A great java game. (Geeks' Lounge)
- build java game (Java)
Other Threads in the Java Forum
- Previous Thread: object counting
- Next Thread: Java Direct tutorial for newbies
| Thread Tools | Search this Thread |
.net 3d 6 access advice ajax api apple applet application array automation beginner binary blogger blogging browser bug c++ class code combo community compile component console daniweb data design development dropdownlist eclipse erpsystems error firefox fractal game games gdata google gui helpwithhomework homework html ide image images int integer j2seprojects java javafx javascript jetbrains julia linus linux method microsoft module mysql net netbeans newbie news nintendo php playstation problem program programming project ps3 python qanda reuse rpg rss search security set software sony sort source studio sun swing threads transfer tree ubuntu vb.net virus web wii windows xbox xbox360 xml







