8
Games Programming
Clearly a single chapter is not going to make you an expert in game programming. A number of good books are devoted specifically to game programming in Python, such as Beginning Game Development with Python and Pygame, by Will McGugan. This chapter introduces you to a very handy library called pygame and gets you started using it to build a simple game.
What Is Pygame?
Pygame is a library that makes it easier to write games for the Raspberry Pi—or more generally for any computer running Python. The reason why a library is useful is that most games have certain elements in common, and you’ll encounter some of the same difficulties when writing them. A library such as pygame takes away some of this pain because someone really ...
Get Programming the Raspberry Pi, Third Edition: Getting Started with Python, 3rd 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.