Skip to main content
main-content

About this book

Gain the basics of Python and use PyGame to create fast-paced video games with great graphics and sounds. You'll also learn about object oriented programming (OOP) as well as design patterns like model-view-controller (MVC) and finite state machines (FSMs).

Python, PyGame and Raspberry Pi Game Development teaches you how to use Python and PyGame on your computer. Whether you use Windows, macOS, Linux, or a Raspberry Pi you can unleash the power of Python and PyGame to create great looking games. Included in the text are complete code listings and explanations for "Bricks," "Snake" and "Invaders"-- three fully-working games. These allow you to get started making your own great games. Modify them or build your own exciting titles.

What You'll Learn

Gain the basics of Python and employ it for game developmentDesign your gameBuild games using game projects as templates like Bricks, Snake, and InvadersWork with user defined functions, inheritance, composition, and aggregationAdd sound to your gamesImplement finite state machines

Who This Book Is For

Experienced coders or game developers new to Python, PyGame and Raspberry Pi. This book is also for makers interested in getting into game development.

Table of Contents

2016 | OriginalPaper | Chapter

Chapter 1. What Is a Programming Language?

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 2. What Is Python?

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 3. Introducing Python

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 4. Breaking Free from the Interpreter

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 5. Making Decisions

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 6. Making the Raspberry Pi Repeat Itself

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 7. Containers

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 8. Introduction to IDLE under LXDE

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 9. Basic Introduction to PyGame

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 10. Designing Your Game

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 11. Game Project: Bricks

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 12. User-Defined Functions

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 13. File Input and Output

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 14. Introducing Object-Oriented Programming

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 15. Inheritance, Composition, and Aggregation

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 16. Game Project: Snake

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 17. Model View Controller

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 18. Sound

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 19. Finite State Machines

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 20. Invaders

Sloan Kelly

2016 | OriginalPaper | Chapter

Chapter 21. Conclusion

Sloan Kelly
Additional information