Python, Pygame, and Raspberry Pi Game Development
暫譯: Python、Pygame 與 Raspberry Pi 遊戲開發

Kelly, Sloan

  • 出版商: Apress
  • 出版日期: 2019-05-29
  • 售價: $1,730
  • 貴賓價: 9.5$1,644
  • 語言: 英文
  • 頁數: 353
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484245326
  • ISBN-13: 9781484245323
  • 相關分類: Raspberry Pi
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

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.

商品描述(中文翻譯)

擴展您對 Python 的基本知識,並使用 PyGame 創建快速節奏的視頻遊戲,擁有出色的圖形和音效。本書的第二版展示了如何使用內建的通用輸入/輸出 (GPIO) 引腳和一些 Python 代碼,將電子元件與您的遊戲整合,並創建兩款新遊戲。

您將學習物件導向程式設計 (OOP) 以及設計模式,例如模型-視圖-控制器 (MVC) 和有限狀態機 (FSM)。無論使用 Windows、macOS、Linux 還是 Raspberry Pi,您都可以釋放 Python 和 PyGame 的力量,創建出色的遊戲。

本書還包括完整的代碼清單和對「磚塊」、「蛇」和「入侵者」這三款完全可運行遊戲的解釋。這些遊戲讓您可以開始製作自己的優秀遊戲,然後修改它們或創建自己的精彩作品。這些概念還通過遊戲進一步解釋,例如「模仿者」,玩家必須集中注意力並重複燈光和聲音的序列,以及「沙發問答」,在這個遊戲中,PyGame 和電子元件共同創建一個適合 2-4 名玩家的問答遊戲。

您將學到什麼


  • 獲得 Python 的基本知識並將其應用於遊戲開發


  • 研究可以作為模板的遊戲項目,例如磚塊、蛇和入侵者


  • 使用自定義函數、繼承、組合和聚合


  • 實現有限狀態機


  • 使用 GPIO 引腳將您的遊戲與電子元件整合


本書適合誰
對於有經驗的程式設計師或新接觸 Python、PyGame 和 Raspberry Pi 的遊戲開發者,本書將非常有幫助。它也適合對遊戲開發感興趣的初學者。

作者簡介

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.

作者簡介(中文翻譯)

斯隆·凱利(Sloan Kelly)在遊戲產業工作了近12年。他參與了多個AAA和獨立遊戲的開發,目前在一家教育遊戲公司工作。他與妻子和孩子住在加拿大安大略省。斯隆在Twitter上的帳號是@codehoose,並在空閒時間製作YouTube影片。