Book description
Launch into coding with Mission Python, a space-themed guide to building a complete computer game in Python. You'll learn programming fundamentals like loops, strings, and lists as you build Escape!, an exciting game with a map to explore, items to collect, and tricky logic puzzles to solve. As you work through the book, you'll build exercises and mini-projects, like making a spacewalk simulator and creating an astronaut's safety checklist that will put your new Python skills to the test.
You'll learn how to use Pygame Zero, a free resource that lets you add graphics and sound effects to your creations, and you'll get useful game-making tips, such as how to design fun puzzles and intriguing maps. Before you know it, you'll have a working, awesome game to stump your friends with (and some nifty coding skills, too!). You can follow this book using a Raspberry Pi or a Microsoft Windows PC, and the 3D graphics and sound effects you need are provided as a download.
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication
- ABOUT THE AUTHOR
- ABOUT THE TECHNICAL REVIEWER
- BRIEF CONTENTS
- CONTENTS IN DETAIL
- ACKNOWLEDGMENTS
- INTRODUCTION
- 1 YOUR FIRST SPACEWALK
- 2 LISTS CAN SAVE YOUR LIFE
- 3 REPEAT AFTER ME
- 4 CREATING THE SPACE STATION
- 5 PREPARING THE SPACE STATION EQUIPMENT
- 6 INSTALLING THE SPACE STATION EQUIPMENT
- 7 MOVING INTO THE SPACE STATION
-
8 REPAIRING THE SPACE STATION
- Sending Information to a Function
- Adding Variables for Shadows, Wall Transparency, and Colors
- Deleting the EXPLORER Section
- Adding the DISPLAY Section
- Positioning the Room on Your Screen
- Making the Front Wall Fade In and Out
- Displaying Hints, Tips, and Warnings
- Showing the Room Name When You Enter the Room
- Are You Fit to Fly?
- 9 UNPACKING YOUR PERSONAL ITEMS
- 10 MAKE YOURSELF USEFUL
-
11 ACTIVATING SAFETY DOORS
- Planning Where to Put Safety Doors
- Positioning the Doors
- Adding Access Controls
- Making the Doors Open and Close
- Adding the Door Animation
- Shutting the Timed Door
- Adding a Teleporter
- Activating the Airlock Security Door
- Removing Exits for Your Own Game Designs
- Mission Accomplished?
- Are You Fit to Fly?
- 12 DANGER! DANGER! ADDING HAZARDS
- A ESCAPE: THE COMPLETE GAME LISTING
- B TABLE OF VARIABLES, LISTS, AND DICTIONARIES
- C DEBUGGING YOUR LISTINGS
- INDEX
Product information
- Title: Mission Python
- Author(s):
- Release date: October 2018
- Publisher(s): No Starch Press
- ISBN: 9781593278571
You might also like
book
Math Adventures with Python
Math Adventures with Python will show you how to harness the power of programming to keep …
book
Python Playground
Python is a powerful programming language that's easy to learn and fun to play with. But …
book
Real-World Python
With its emphasis on project-based practice, Real-World Python will take you from playing with syntax to …
book
Machine Learning Systems
Machine Learning Systems: Designs that scale is an example-rich guide that teaches you how to implement …