Code the Classics Volume 1
By Raspberry Pi
Code the Classics Volume 1 is a 224-page hardback from Raspberry Pi Press that does two things at once. It tells the stories behind some of the defining video games of the 1970s and 1980s, and it shows you how to writ...
Get notified when back in stock
1300 240 817
Mon–Fri, 10am–4pm Sydney time
Code the Classics Volume 1 is a 224-page hardback from Raspberry Pi Press that does two things at once. It tells the stories behind some of the defining video games of the 1970s and 1980s, and it shows you how to write your own games inspired by them in Python, using the Pygame Zero library.
The book remakes five classics, each from a different genre and ranging from Pong to Sensible Soccer. The example games were programmed by Raspberry Pi co-founder Eben Upton, with art and audio from two of the 1980s' most prolific games developers, and the original games' creators are interviewed along the way.
Why choose it
- Five complete games to play and pick apart. Every game comes with its full code listing and an explanation of how it works, so you can change it and see what happens.
- Python, not a game engine. Pygame Zero takes care of routine jobs such as drawing images and playing sounds, so the code concentrates on how the game plays.
- History as well as code. Interviews with the original developers, and with expert graphics and audio creators, show what you can learn from their example.
- The code is free to download, so you can play each game before you start reading its listing.
The five games
| Game | What it is |
|---|---|
| Boing! | The simplest of the five: all it took was a couple of lines and a dot. |
| Cavern | A platform game, a genre still packed with creative possibilities. |
| Infinite Bunner | What a top-down view brings to the platform genre. |
| Myriapod | A single-screen shooter where restricted movement builds the challenge. |
| Substitute Soccer | Top-down, pinball-style football. |
What you'll learn
- How to install Python, Pygame Zero and a code editor, then run and edit the games
- Game design tips and tricks from the people who made the originals
- How to code your own games with Pygame Zero
- How each code listing works
Specifications
| Publisher | Raspberry Pi Press |
|---|---|
| Edition | First edition, December 2019 |
| Format | Hardback, 224 pages |
| Language and tools | Python with Pygame Zero |
| Example games | Programmed by Eben Upton |
Good to know
- Raspberry Pi Press published a second edition in July 2024 with the same five games. Its e-book is available to Raspberry Pi Press contributors from the book page, which also lists reader-reported errata.
- For five more games inspired by the 1980s, see Code the Classics Volume II.