This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How do I make the paddle? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do I make the paddle?" Watch "How do I make the paddle?" New topic
Author

How do I make the paddle?

mark geroso
Greenhorn

Joined: Oct 12, 2006
Posts: 24
My partner and I were assigned to make a 'pong' like game, but instead of bouncing the balls, we catch them. This was the code he passed to me, and I'm supposed to make the paddle and catch the dropping balls.
This totally does not look like his work and I'd make him rewrite it, but as the deadline is tomorrow, I guess there's just no time.
My question is, how do I write the paddle? He has no paint method. I was planning on using making a rectangle over the balls and checking if they intersected with the paddle. Then increment score and redrawing the ball to make it disappear...
Suggestions please?

Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I make the paddle?
 
Similar Threads
Giving Pong Computer Intelligence.
Making Y--
Double Buffering Problem
Problem with writing code.
My Games Flashing!!