Python, PyGame, and Raspberry Pi game development /
[Book]
Sloan Kelly.
Second edition.
[Berkeley, CA] :
Apress L.P.,
[2019]
1 online resource (395 pages)
Includes index.
Introduction -- What is a programming language? -- What is Python? -- Introducing Python -- Breaking free from the interpreter -- Making decisions -- Making the Raspberry Pi repeat itself -- Containers -- Putting It Together: Tic-Tac-Toe -- Basic introduction to PyGame -- Designing your game -- Game project: Bricks -- User-defined functions -- File input and output -- Introducing object-oriented programming -- Inheritance, composition, and aggregation -- Game project: Snake -- Model View Controller -- Audio -- Finite State Machines -- Game Project: Invaders -- Simple Electronics with the GPIO Pins -- Game Project: Memory -- Game Project: Quiz -- Conclusion.
0
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 "Couch Quiz," in which PyGame and electronic components create a quiz game for 4 players.
OverDrive, Inc.
54460B12-AA1B-4D41-9D71-E2A71EF027AE
Python, Pygame, and Raspberry Pi Game Development.