Make Games with Python: Create Your Own Entertainment with Raspberry Pi
暫譯: 用 Python 製作遊戲:使用 Raspberry Pi 創造自己的娛樂作品
Tracey, Sean M.
- 出版商: Raspberry Pi Press
- 出版日期: 2025-08-19
- 售價: $860
- 貴賓價: 9.5 折 $817
- 語言: 英文
- 頁數: 160
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1916868460
- ISBN-13: 9781916868465
-
相關分類:
Python、遊戲設計 Game-design、Raspberry Pi
海外代購書籍(需單獨結帳)
商品描述
Learning to code your own shoot-'em-up game is infinitely more satisfying than beating any end-of-level boss. While millions of us enjoy nothing more than spending hours racking up high scores on our favourite video games, too few are exposed to an even more gratifying way to spend time -- making them.
Tested to run on the latest Raspberry Pi hardware and operating system, the games and instructions in this book work on Windows, macOS, or Linux.
This book teaches Python and Pygame development, helping you to understand the games you play and create almost anything your imagination can come up with. As you work your way up to creating your own shoot-'em-up game, you'll learn how to:
- Create shapes and paths
- Move sprites and detect collisions
- Handle keyboard, mouse, and gamepad input
- Add sound and music
- Simulate physics and forces
Although this book isn't aimed at complete programming beginners, it isn't too advanced either. If you've written programs in Python (or a similar programming language) and can perform basic administrative tasks -- such as creating files and navigating your computer's file system -- without too much difficulty, then you're ready to get started.
商品描述(中文翻譯)
學習編寫自己的射擊遊戲比打敗任何關卡的首領來得更令人滿足。雖然我們中的數百萬人喜歡花幾個小時在最喜愛的電子遊戲中累積高分,但接觸到一種更令人愉悅的消遣方式——製作遊戲的人卻少之又少。
本書經過測試,能在最新的 Raspberry Pi 硬體和作業系統上運行,書中的遊戲和指令也適用於 Windows、macOS 或 Linux。
本書教授 Python 和 Pygame 的開發,幫助你理解所玩的遊戲,並創造出幾乎任何你能想像的東西。在你逐步創建自己的射擊遊戲的過程中,你將學會如何:
- 創建形狀和路徑
- 移動精靈並檢測碰撞
- 處理鍵盤、滑鼠和遊戲手把的輸入
- 添加聲音和音樂
- 模擬物理和力
雖然本書並不針對完全的程式設計初學者,但也不會太過高深。如果你曾經用 Python(或類似的程式語言)編寫過程式,並且能夠在不太困難的情況下執行基本的管理任務——例如創建檔案和瀏覽電腦的檔案系統——那麼你就已經準備好開始了。