Return to site

Bouncing ball when it touches square in java

broken image
broken image

So the next step is to get ball bouncing off the blocks.

broken image

I have managed to get the ball bouncing around the screen and off the block using a set of if statements checking the location of the ball against the location of the paddle and walls. I want to make the classic pong game with one paddle, and a number of blocks to break. Ok, I have created a mobile application for a java enabled phone.

broken image