Python, PyGame, and Raspberry Pi Game Development (eBook)
XXV, 389 Seiten
Apress (Verlag)
978-1-4842-4533-0 (ISBN)
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.
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.
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 "e;Bricks,"e; "e;Snake,"e; and "e;Invaders"e;-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 "e;Copycat,"e; where the player must concentrate and repeat the sequence of lights and sounds, and "e;Couch Quiz,"e; in which PyGame and electronic components create a quiz game for 2-4 players.What You'll LearnGain basic knowledge of Python and employ it for game developmentStudy game projects you can use as templates, such as Bricks, Snake, and InvadersWork with user-defined functions, inheritance, composition, and aggregationImplement finite state machinesIntegrate your game with electronics using the GPIO pinsWho This Book Is ForExperienced 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.
Erscheint lt. Verlag | 25.5.2019 |
---|---|
Zusatzinfo | XXV, 389 p. 81 illus. |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Informatik ► Software Entwicklung ► Spieleprogrammierung | |
Schlagworte | Code • Game Development • Games • programming • Pygame • Python • Raspberry Pi • Software |
ISBN-10 | 1-4842-4533-4 / 1484245334 |
ISBN-13 | 978-1-4842-4533-0 / 9781484245330 |
Haben Sie eine Frage zum Produkt? |
Größe: 6,1 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich