Hello,
I want to get back into Java Midlets games using MIDP which I enjoyed at Uni because it was relatively simple, but not Flash ;D
Anyway, I’ve set up Eclipse etc, an improvement over JBuilder at any rate, and I wanted to make a simple Pong game for starters. This is actually a lot simpler than the game I made at Uni (which was a paratrooper type game), but I realised I have no idea how to make the ball bounce off at an angle, you know when it bounces of the edge of the paddle? How is that done? It doesn’t just bounce “flat” , IYSMWIM. I suppose I could just hard code angles at certain points, but I assume there is better mathematical way to do it?
Cheers,
CoffeeMonster