Code the Classics Volume II
By Raspberry Pi
Code the Classics Volume II is Raspberry Pi Press's second book of retro game making. It tells the stories of some of the defining video games of the 1980s, then shows you how to write your own games inspired by them ...
Get notified when back in stock
1300 240 817
Mon–Fri, 10am–4pm Sydney time
Code the Classics Volume II is Raspberry Pi Press's second book of retro game making. It tells the stories of some of the defining video games of the 1980s, then shows you how to write your own games inspired by them in Python, using the Pygame Zero library.
The five new games were programmed by Andrew Gillett, assisted by Raspberry Pi co-founder and CEO Eben Upton and Sean M. Tracey, with graphics by Dan Malone and music and sound effects by Allister Brimble. The stories are by Simon Brew, David Crookes and Liz Upton, and the foreword is by Dr David Braben.
Why choose it
- Five complete games to play and pick apart. Each game comes with an abridged code listing and a detailed explanation of its logic, so you can follow how it works, then change it and see what happens.
- The fundamentals every game needs. The book covers displaying images, playing sound effects and reading the keyboard or a game controller, then shows how Pygame Zero automates those jobs.
- Design advice from the masters. Game design tips sit alongside the history of the games that inspired each project.
- Free source code. All five games are on Raspberry Pi Press's GitHub, so you can play them before you start reading. The printed listings are shortened, so the GitHub code is the complete version.
The five games
| Game | What you do |
|---|---|
| Avenger | Fly across a scrolling landscape, saving humans from malevolent aliens. |
| Beat Streets | Fight your way through a level and defeat a notorious crime boss. |
| Eggzy | Collect gems and survive as long as you can before time runs out. |
| Leading Edge | Race a car on a pseudo-3D track. |
| Kinetix | Break bricks with your paddle and use power-ups to avoid various menaces. |
What you'll learn
- How to install Python, Pygame Zero and a code editor, then run and edit the games
- How to display images, play sound effects and take input from a keyboard or game controller
- How to code your own games with Pygame Zero
- How each code listing works
Specifications
| Publisher | Raspberry Pi Press |
|---|---|
| Published | September 2024 |
| Games by | Andrew Gillett, with Eben Upton and Sean M. Tracey |
| Graphics and audio | Dan Malone (graphics), Allister Brimble (music and sound effects) |
| Foreword | Dr David Braben |
| Language and tools | Python with Pygame Zero |
| ISBN | 978-1-916868-04-5 |
Good to know
- Raspberry Pi Press makes the e-book available to its contributors, and lists reader-reported errata, on the book page.
- New to Pygame Zero? Code the Classics Volume 1 starts with simpler games, beginning with Boing!.