Skip to main content
  • Book
  • © 2020

Beginning Game Programming with Pygame Zero

Coding Interactive Games on Raspberry Pi Using Python

Apress

Authors:

  • Become a games programmer with Pygame Zero
  • Work on a Raspberry Pi for low-cost and easy to use computing
  • Build the suggested games to gain immediate experience

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (11 chapters)

  1. Front Matter

    Pages i-xx
  2. Creating Computer Games

    • Stewart Watkiss
    Pages 1-10
  3. Getting Started with Python

    • Stewart Watkiss
    Pages 11-49
  4. Pygame Zero

    • Stewart Watkiss
    Pages 51-89
  5. Game Design

    • Stewart Watkiss
    Pages 91-110
  6. Graphic Design

    • Stewart Watkiss
    Pages 111-130
  7. Colors

    • Stewart Watkiss
    Pages 131-143
  8. Tank Game Zero

    • Stewart Watkiss
    Pages 145-180
  9. Sound

    • Stewart Watkiss
    Pages 181-205
  10. Object-Oriented Programming

    • Stewart Watkiss
    Pages 207-241
  11. Artificial Intelligence

    • Stewart Watkiss
    Pages 243-292
  12. Improvements and Debugging

    • Stewart Watkiss
    Pages 293-329
  13. Back Matter

    Pages 331-348

About this book

Make fun games while learning to code. Focused on making games rather than teaching programming theory, in this book you're more likely to see code on how gravity affects a missiles trajectory instead of the most efficient way to search through data. Even then the code is kept simple as games should be about playability rather than complex physics. There are links to the official documentation when you need to lookup information that isn't included in the book.

Start with a simple text based game to grasp the basics of programming in Python. Then moves on to creating simple graphical games in Pygame Zero. Not only will you learn object oriented programming to make it easier to make more complex games, you'll also work to create your own graphics and sounds. 3D graphics are a little complex. So we focus on 2D games, including spins on some classic boardgames and arcade games. All the games are designed to run on a Raspberry Pi. They will work on any Raspberry Pi, butwill also work on any other computer that supports Python 3 along with Pygame Zero.


The games you make will be playable and hopefully fun to play. And by the end of the book, you can step beyond the provided source code to develop your own unique games and programs.


What You'll Learn
  • Code in Python
  • Generate sounds and graphics for 2D games
  • Grasp object oriented programming with Pygame Zero 



Who This Book Is For
Beginning game developers interested in working with low-cost and easy-to-learn solutions like Pygame Zero and the Raspberry Pi.

Authors and Affiliations

  • Redditch, UK

    Stewart Watkiss

About the author

Stewart Watkiss is a keen maker, programmer, and author of Learn Electronics with Raspberry Pi. He studied at the University of Hull, where he earned a master’s degree in electronic engineering and more recently with Georgia Institute of Technlogy where he earned a master’s degree in computer science. 

Stewart also volunteers as a STEM Ambassador, helping teach programming and physical computer to school children and at Raspberry Pi events. He has created a number of resources using Pygame Zero which he makes available on his web site (www.penguintutor.com).

Bibliographic Information

  • Book Title: Beginning Game Programming with Pygame Zero

  • Book Subtitle: Coding Interactive Games on Raspberry Pi Using Python

  • Authors: Stewart Watkiss

  • DOI: https://doi.org/10.1007/978-1-4842-5650-3

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Stewart Watkiss 2020

  • Softcover ISBN: 978-1-4842-5649-7Published: 05 February 2020

  • eBook ISBN: 978-1-4842-5650-3Published: 04 February 2020

  • Edition Number: 1

  • Number of Pages: XX, 348

  • Number of Illustrations: 59 b/w illustrations

  • Topics: Hardware and Maker, Python

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access