So, I don't know any good Java forums, so I figured I'd stop here and ask. You've all been pretty great with everything.
Last semester I made pong for my Java class. At some point I plan on recreating it in C++, but I need to figure out OpenGL or something first. Anyway, I want to flesh this thing out in Java a bit so I can actually call it a "small project" in resumes and what not. I've got a whole list of stuff I want to do with it, but right now I'm having this sort of issue.
When you play the game, the ball tends to bounce to the top right and left corners roughly and go down towards the middle, every time. I'm not really sure why it's happening, or if any of you have ever had a similar problem.
I'll post the snippet that deals with the ball collision and movement.
Well, it appears that all you are ever doing is speeding up the ball if they hit the paddle and bouncing directly off of the walls with no speed or direction change. You could try not changing the x or y speed or something if the ball hits the users paddle and the paddle is moving, perhaps.
Testing for paddle movement seems like a good idea. The ball does change direction, but it's just an exact opposite direction. Basically it's a perpendicular slope of it's previous direction