Chapter    5

Creating the Player Character and Obstacles

In the previous chapter, you learned how to add a background image to your game, Prison Break. You created a class that, when instantiated, gave you all of the resources you needed to add your background.

In this chapter, you are going to take that knowledge and apply it to the game’s bricks, player paddle, and ball. This will give you all of the on-screen objects you need to make the game.

Before you begin working on the bricks, paddle, or ball, however, there are some things you need to do.

Before You Begin

You need to add a few things to your project to prepare for this chapter, the first being the images that you will use for the bricks, the paddle, and the ball. The image that I used ...

Get Android Arcade Game App: A Real World Project - Case Study Approach 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.