Web Design IES
Web Design in Easy Steps, now in its 7th Edition, shows you how to make effective websites that work on any device.
Air is running out. There's a leak in the space station, so you've got to act fast. Can you find your way to safety? You'll need to navigate your way through the space station, find the key cards to unlock the doors, and fix your space suit before entering the airlock. The adventure has begun...
And it starts here: on Earth, at mission command, also known as 'your computer'. In this book, you'll learn how to build your own graphical adventure game, with a map to explore, objects to interact with, and tricky logic puzzles.
You'll discover how to use Python to build the Escape game. You'll learn how to customize it, so you can add your own graphics and puzzles, and even use the game engine to build an entirely different game. For the graphical elements, you'll use Pygame Zero.
The game runs on a Windows PC or a Raspberry Pi, and uses free software. The game is supported by a pack of downloadable sounds and graphics to use in building the game.
Mission Python is out now!
Take a look at Mission Python with this free PDF sampler. It includes the Introduction which shows you how to install the required software and provides instructions for playing the space adventure game, called Escape. It also includes Chapter 1, so you can get your first taste of programming using Python and Pygame Zero, creating a simple spacewalk simulator.
See my blog post: Three reasons to download the free PDF sampler of Mission Python
You can download all the code, graphics and sound effects for Mission Python here.
If you'd like to play the game, simply read the Mission Python sample PDF for instructions on setting it up and playing it.
Find out more about Mission Python, including ideas for how you can extend and customise the Escape game code.
On Windows and macOS, I now recommend you use the Mu Python editor. It comes with Pygame Zero installed already. When you run Mu, click Mode to check it's on Pygame Zero mode. Enter your program in the big window, and then click the Play button to run it.
On a Raspberry Pi, use Thonny, which is installed as one of the recommended applications in Raspberry Pi OS. It also gives you access to Pygame Zero without any further installation required.
If you want to install Pygame Zero to use with another editor, see the Pygame Zero documentation here.
Note that if you use a different editor to IDLE, the code colouring will be different.
At the time the book was written, Python 3.6 was the latest version on which Pygame Zero worked. Now, I recommend you use a more recent version through Mu or Thonny, as explained above.
The book doesn't cover the Mac because I don't have one, and we couldn't test it before release. I was able to thoroughly test the entire project on Windows and Raspberry Pi. However, readers have since told me it works fine on a Mac. The project should work anywhere Pygame Zero runs. There is more information on compatibility here.
You can download the sample chapter and the full game code to test it on your computer before buying the book.
The book has been thoroughly tested. I tested every listing on both Windows and Raspberry Pi, building it from the book. The technical editor also tested all the listings. If a program isn't working for you, there is most likely a problem with your version of the code.
I suggest the following steps:
The book went through extensive quality control, but I've been alerted to a couple of errors that have slipped in despite our best efforts, and the software on the Raspberry Pi has been updated since publication. (The code errors didn't stop the game working). I'm maintaining a blog post for errata and updates here. We are incorporating these updates and corrections into the ebook and reprints of the paper book. If you bought your copy of the book recently, it may have been updated with these changes already.
© Sean McManus. All rights reserved.
Visit www.sean.co.uk for free chapters from Sean's coding books (including Mission Python, Scratch Programming in Easy Steps and Coder Academy) and more!
Web Design in Easy Steps, now in its 7th Edition, shows you how to make effective websites that work on any device.
Power up your Microsoft Excel skills with this powerful pocket-sized book of tips that will save you time and help you learn more from your spreadsheets.
This book, now fully updated for Scratch 3, will take you from the basics of the Scratch language into the depths of its more advanced features. A great way to start programming.
Code a space adventure game in this Python programming book published by No Starch Press.
Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!
In this entertaining techno-thriller for adults, Sean McManus takes a slice through the music industry: from the boardroom to the stage; from the studio to the record fair.