Home > Books > Mission Python

Mission Python: Code a Space Adventure Game

Book cover: Mission Python

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! For updates, follow me on Twitter.

Buy the book

See the Escape game from Mission Python in action

Download the Mission Python PDF sampler

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.

Screenshot of the spacewalk simulator

Download the code from Mission Python and play the game

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.

screenshot of Mission Python

Your mission begins on the space station!

Additional resources

Map templateI'll be adding more resources here to help you to get the best from this book and the game. Follow me on Twitter for updates!

Find out more about the book and the process behind creating it in these blog posts:

Mission Python: Errata and Updates

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. 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.

Related title: Raspberry Pi For Dummies

Take a look at the new edition of Raspberry Pi For Dummies, out now. It includes two chapters introducing programming in Python, and using Pygame Zero.


© 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!

Discover my latest books

100 Top Tips: Microsoft Excel

100 Top Tips: Microsoft Excel

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.

Scratch Programming in Easy Steps

Scratch Programming IES

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.

Mission Python book

Mission Python

Code a space adventure game in this Python programming book published by No Starch Press.

Cool Scratch Projects in Easy Steps book

Cool Scratch Projects in Easy Steps

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

Raspberry Pi For Dummies

Raspberry Pi For Dummies

Set up your Raspberry Pi, then learn how to use the Linux command line, Scratch, Python, Sonic Pi, Minecraft and electronics projects with it.



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.

Scratch and Raspberry Pi resources

Scratch cat with balloons invites you to visit my Scratch resources

Sean's Scratch Resources

Tips, tutorials and free book chapters for Scratch, a coding language widely used in schools.

Four LEDs on a breadboard connected to a Raspberry Pi

Sean's Raspberry Pi Resources

Tutorials and guides for the Raspberry Pi, a budget computer perfect for learning to program.

Walking astronaut from Mission Python book Top | Search | Help | Privacy | Access Keys | Contact me
Home | Blog | Copywriting Services | Books | Free book chapters | Articles | Music | Photos | Games | Shop | About