© Sloan Kelly  2019
Sloan KellyPython, PyGame, and Raspberry Pi Game Developmenthttps://doi.org/10.1007/978-1-4842-4533-0_11

11. Game Project: Bricks

Sloan Kelly1 
Niagara Falls, ON, Canada

In this chapter we’ll review Bricks, our first game project. For those of you who haven’t played this game before, you control a bat at the bottom of the screen (Figure 11-1). There is a collection of bricks above you and using the ball you must destroy all the bricks by hitting them with the ball.

Sounds simple enough, but in this project, we’ll learn about
  • Player movement

  • Automatic (non-player) movement

  • Collision detection

  • Displaying images

Figure 11-1.

The main brick ...

Get Python, PyGame, and Raspberry Pi Game Development 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.