Mission Python: Code a Space Adventure Game! (任務:Python 太空冒險遊戲編程!)

Sean McManus

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

相關主題

商品描述

Program a graphical adventure game in this hands-on, beginner-friendly introduction to coding in the Python language.

Launch into coding with Mission: Python, a space-themed guide to building a complete computer game in Python. You'll learn programming fundamentals like loops, strings, and lists as you build Escape!, an exciting game with a map to explore, items to collect, and tricky logic puzzles to solve. As you work through the book, you'll build exercises and mini-projects, like making a spacewalk simulator and creating an astronaut's safety checklist that will put your new Python skills to the test. You'll learn how to use Pygame Zero, a free resource that lets you add graphics and sound effects to your creations, and you'll get useful game-making tips, such as how to design fun puzzles and intriguing maps. Before you know it, you'll have a working, awesome game to stump your friends with (and some nifty coding skills, too!). You can follow this book using a Raspberry Pi or a Microsoft Windows PC, and the 3D graphics and sound effects you need are provided as a download.

商品描述(中文翻譯)

在這本實踐性且適合初學者的Python編程入門書中,你將學習如何編寫一個圖形冒險遊戲。

透過《Mission: Python》,一本以太空為主題的指南,你將進入編程的世界,使用Python語言建立一個完整的電腦遊戲。在構建名為Escape!的刺激遊戲時,你將學習編程的基礎知識,如循環、字符串和列表。遊戲中有地圖可供探索、物品可收集,以及需要解決的棘手邏輯謎題。在閱讀本書的過程中,你將完成練習和小型項目,例如製作太空漫步模擬器和創建宇航員安全檢查表,這些將考驗你的Python技能。你還將學習如何使用Pygame Zero,一個免費的資源,讓你為創作添加圖形和音效。同時,你還將獲得有用的遊戲製作技巧,例如如何設計有趣的謎題和引人入勝的地圖。在你意識到之前,你將擁有一個能讓你的朋友們困惑的精彩遊戲(還有一些很棒的編程技能!)。你可以使用Raspberry Pi或Microsoft Windows PC來跟隨本書的內容,所需的3D圖形和音效可以作為下載提供。

目錄大綱

Introduction

Chapter 1: Your First Spacewalk
Chapter 2: Lists Can Save Your Life
Chapter 3: Repeat After Me
Chapter 4: Creating the Space Station
Chapter 5: Preparing the Space Station Equipment
Chapter 6: Installing the Space Station Equipment
Chapter 7: Moving into the Space Station
Chapter 8: Repairing the Space Station
Chapter 9: Unpacking Your Personal Items
Chapter 10: Make Yourself Useful
Chapter 11: Activating Safety Doors
Chapter 12: Danger! Danger! Adding Safety Hazards

Appendix A: Escape: The Complete Game Listing
Appendix B: Table of Variables, Lists, and Dictionaries
Appendix C: Debugging Your Listings

目錄大綱(中文翻譯)

介紹

第一章:你的第一次太空行走

第二章:列表可以拯救你的生命

第三章:跟我重複

第四章:建立太空站

第五章:準備太空站設備

第六章:安裝太空站設備

第七章:進入太空站

第八章:修理太空站

第九章:打開個人物品

第十章:讓自己有用

第十一章:啟動安全門

第十二章:危險!危險!增加安全風險

附錄A:逃脫:完整遊戲清單

附錄B:變數、列表和字典表格

附錄C:除錯你的程式清單