Running the game

We can now move the bat left and right, but the ball just flies off into oblivion and the bat has no way of stopping it. Oh dear!

Note

No screen-shot provided because it doesn't look much different to the previous image when the bat was static.

We will solve this problem by detecting collisions in the next chapter.

Get Learning Java by Building Android Games - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.