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

目錄大綱(中文翻譯)

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