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 and music

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!

Coder Academy book

Coder Academy

Learn to make games and other programs in Scratch, and make a web page in HTML. Highly interactive book for 7-10 year olds.

Artificial: album cover shows a steampunk heart


What happens beyond AI when the machines become emotional? Discover my new album of electronic music here.

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