Don’t miss your chance to get Apress Access for only $99 through June 26, 2019! Subscribe now >>

Python, PyGame, and Raspberry Pi Game Development

Authors: Kelly, Sloan

Download source code Free Preview
  • Introduction to the PyGame framework and its workings
  • Use Python to access the GPIOs 
  • Design a game from a code perspective
see more benefits

Buy this book

eBook $24.99
price for Brazil (gross)
  • ISBN 978-1-4842-4533-0
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $32.99
price for Brazil
  • ISBN 978-1-4842-4532-3
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
About this book

Expand your basic knowledge of Python and use PyGame to create fast-paced video games with great graphics and sounds. This second edition shows how you can integrate electronic components with your games using the build-in general purpose input/output (GPIO) pins and some Python code to create two new games. 

You'll learn about object-oriented programming (OOP) as well as design patterns, such as model-view-controller (MVC) and finite-state machines (FSMs). Whether using Windows, macOS, Linux, or a Raspberry Pi, you can unleash the power of Python and PyGame to create great looking games. 

The book also includes complete code listings and explanations for "Bricks," "Snake," and "Invaders"—three fully working games. These allow you to get started in making your own great games and then modify them or build your own exciting titles. The concepts are further explained using games such as “Copycat,” where the player must concentrate and repeat the sequence of lights and sounds, and “Couch Quiz,” in which PyGame and electronic components create a quiz game for 2–4 players.

What You’ll Learn

  • Gain basic knowledge of Python and employ it for game development
  • Study game projects you can use as templates, such as Bricks, Snake, and Invaders
  • Work with user-defined functions, inheritance, composition, and aggregation
  • Implement finite state machines
  • Integrate your game with electronics using the GPIO pins

Who This Book Is For

Experienced coders or game developers new to Python, PyGame and Raspberry Pi would find this book helpful. It is also for beginners interested in getting into game development.

About the authors

Sloan Kelly has worked in the games industry for nearly 12 years. He has worked on a number of AAA and indie titles and currently works for an educational game company. He lives in Ontario, Canada with his wife and children. Sloan is on Twitter @codehoose and makes YouTube videos in his spare time.

Table of contents (24 chapters)

Table of contents (24 chapters)

Buy this book

eBook $24.99
price for Brazil (gross)
  • ISBN 978-1-4842-4533-0
  • Digitally watermarked, DRM-free
  • Included format: PDF, EPUB
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $32.99
price for Brazil
  • ISBN 978-1-4842-4532-3
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.

Services for this book

Loading...

Bibliographic Information

Bibliographic Information
Book Title
Python, PyGame, and Raspberry Pi Game Development
Authors
Copyright
2019
Publisher
Apress
Copyright Holder
Sloan Kelly
eBook ISBN
978-1-4842-4533-0
DOI
10.1007/978-1-4842-4533-0
Softcover ISBN
978-1-4842-4532-3
Edition Number
2
Number of Pages
XXV, 389
Number of Illustrations
81 b/w illustrations
Topics