June 2021
Beginner
208 pages
3h 50m
English
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.
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 ...