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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access