Python, PyGame and Raspberry Pi Game Development

Voorkant
Apress, 23 dec 2016 - 198 pagina's

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 development
  • Design your game
  • Build games using game projects as templates like Bricks, Snake, and Invaders
  • Work with user defined functions, inheritance, composition, and aggregation
  • Add sound to your games
  • Implement 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.
 

Geselecteerde pagina's

Inhoudsopgave

What Is a Programming Language?
2
What Is Python?
4
Introducing Python
7
Breaking Free from the Interpreter
22
Making Decisions
27
Making the Raspberry Pi Repeat Itself
36
Containers
43
Introduction to IDLE under LXDE
52
File Input and Output
95
Introducing ObjectOriented Programming
99
Inheritance Composition and Aggregation
109
Game Project Snake
117
Model View Controller
140
Sound
153
Finite State Machines
155
Invaders
163

Basic Introduction to PyGame
59
Designing Your Game
66
Game Project Bricks
73
UserDefined Functions
86
Conclusion
192
Index
193
Copyright

Overige edities - Alles bekijken

Veelvoorkomende woorden en zinsdelen

Over de auteur (2016)

Sloan Kelly is an experienced software developer with over 18 years of progressive experience. Hands-on professional with a proven record of success and delivery. Skills include C#, C/C++, Unity3D, Windows Presentation Foundation (WPF/MVVM), Windows Communication Foundation (WCF), Managed Extensibility Framework (MEF), DirectX, XNA, Collada, Java, HTML, CSS, JavaScript, XML.

Bibliografische gegevens