Поделиться

python-pygame-and-raspberry-pi-game-development
Publisher: Apress Publishing
Author: Sloan Kelly
ISBN-10: 1484245326
ISBN-13: 978-1484245323
Pages: 389
Language: English
Year: 2019
File: ebook PDF

Use PyGame to create dynamic video games with great graphics and sounds

Для кого эта книга

Эта книга подойдет опытным программистам и разработчикам игр, желающим познакомиться с Python, PyGame и Raspberry Pi. Во втором издании показано, как вы можете интегрировать электронные компоненты со своими играми, используя встроенные универсальные методы ввода-вывода (GPIO) и некоторый код Python для создания двух новых игр.

Вы узнаете об объектно-ориентированном программировании (ООП), а также о шаблонах проектирования, таких как модель-представление-контроллер (MVC) и конечные автоматы (FSM). Независимо от того, используете ли вы Windows, macOS, Linux или Raspberry Pi, вы можете использовать возможности Python и PyGame для создания великолепно выглядящих игр.

В книгу также включены полные списки кодов и пояснения для трех полностью работающих игр: «Кирпичи», «Змеи» и «Захватчики». Полученный опыт позволит вам начать создавать свои собственные великолепные игры, а затем модифицировать и улучшать их. Дальнейшее развитие предполагает изучение таких игр, как «Copycat», где игрок должен сосредоточиться и повторить последовательность световых сигналов и звуков, и «Couch Quiz», в которой PyGame и электронные компоненты создают игру-викторину для 2–4 игроков.

Что вы узнаете

  • Получите базовые знания Python и используйте их для разработки игр
  • Изучите игровые проекты, которые вы можете использовать в качестве шаблонов, такие как Bricks, Snake и Invaders
  • Изучите работу с пользовательскими функциями, наследованием, составлением и агрегацией
  • Рассмотрите реализацию конечных автоматов
  • Сможете изучит возможность интеграции своей игры с электроникой, используя контакты GPIO

 

Book Description:

The second edition shows how you can integrate electronic components with your games using the built-in general-purpose input-output pins (GPIO) 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 Author

Sloan Kelly has worked in the gaming industry for almost 12 years. He has worked on many AAA and indie games and is currently working in an educational games company. He lives in Ontario, Canada, with his wife and children. Sloane tweets @codehoose and shoots a video on YouTube in his spare time. There are five projects that produce complete games, all the code and resources for which are on the web site sloankelly.net

Python, PyGame, and Raspberry Pi Game Development

Sloan Kelly проработал в игровой индустрии почти 12 лет. Он работал над многими AAA и инди-играми и в настоящее время работает в компании по разработке образовательных игр. Он живет в Онтарио, Канада, со своей женой и детьми. Слоан пишет в Твиттере @codehoose и снимает видео на YouTube в свободное время. Есть пять проектов, которые производят законченные игры, весь код и ресурсы для которых находятся на веб-сайте.

Python, PyGame, and Raspberry Pi Game Development

 

  • Chapter 1: What Is a Programming Language?
  • Chapter 2: What Is Python?
  • Chapter 3: Introducing Python
  • Chapter 4: Breaking Free from the Interpreter
  • Chapter 5: Making Decisions
  • Chapter 6: Making the Raspberry Pi Repeat Itself
  • Chapter 7: Containers
  • Chapter 8: Putting It Together: Tic-Tac-Toe
  • Chapter 9: Basic Introduction to PyGame
  • Chapter 10: Designing Your Game
  • Chapter 11: Game Project: Bricks
  • Chapter 12: User-Defined Functions
  • Chapter 13: File Input and Output
  • Chapter 14: Introducing Object-Oriented Programming
  • Chapter 15: Inheritance, Composition, and Aggregation
  • Chapter 16: Game Project: Snake
  • Chapter 17: Model View Controller
  • Chapter 18: Audio
  • Chapter 20: Game Project: Invaders
  • Chapter 21: Simple Electronics with the GPIO Pins
  • Chapter 22: Game Project: Memory
  • Chapter 23: Game Project: Quiz
  • Chapter 24: Conclusion
  • Index

Top Games made with pygame — Лучшие игры, сделанные с Pygame

Pygame (site) is a set of Python programming language modules designed for writing computer games and multimedia applications.

Book page in publishing

All the resources for the book Python, PyGame and Raspberry Pi Game Development

PDF             GitHub       PDF       key             Q1_VsUtiQcsVW7pcStdvFrfxzXZHrv3SyJwIG0QVIoE

Python, PyGame and the Raspberry Pi

https://www.htbook.ru/wp-content/uploads/2023/03/python-pygame-and-raspberry-pi-game-development.jpghttps://www.htbook.ru/wp-content/uploads/2023/03/python-pygame-and-raspberry-pi-game-development-130x200.jpgPython Game DevelopmentApress,Python,Sloan KellyPublisher: Apress Publishing Author: Sloan Kelly ISBN-10: 1484245326 ISBN-13: 978-1484245323 Pages: 389 Language: English Year: 2019 File: ebook PDF Use PyGame to create dynamic video games with great graphics and sounds Для кого эта книга Эта книга подойдет опытным программистам и разработчикам игр, желающим познакомиться с Python, PyGame и Raspberry Pi. Во втором издании показано, как вы можете интегрировать...Библиотека технической тематики. Техническая литература

Поделиться