File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I make the paddle?

 
mark geroso
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1535
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic