Book Description
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.
Table of Contents
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
Appendix A Escape: The Complete Game Listing
Appendix B Table Of Variables, Lists, And Dictionaries
Appendix C Debugging Your Listings
中文:
书名:任务巨蟒:编写一款太空冒险游戏!
编程一个图形冒险游戏在这个动手,初学者友好的介绍编码在Python语言。
使用以下工具开始编码 任务巨蟒,这是一本以空间为主题的指南,介绍如何用Python语言构建完整的电脑游戏。在构建Escape的过程中,您将学习循环、字符串和列表等编程基础知识。Escape!是一款令人兴奋的游戏,有地图可供探索,物品可供收集,还有棘手的逻辑难题需要解决。在你读完这本书的过程中,你将建立练习和迷你项目,比如制作一个太空行走模拟器,以及创建一份宇航员的安全核对表,这将考验你的新的Python技能。您将学习如何使用免费资源PyGame Zero,它可以让您在创作中添加图形和音效,您还将获得有用的游戏制作技巧,如如何设计有趣的拼图和有趣的地图。在你意识到这一点之前,你就已经有了一款可以用来对付你的朋友的有效的、令人惊叹的游戏(还有一些巧妙的编程技巧!)您可以使用Raspberry PI或Microsoft Windows PC阅读本书,您需要的3D图形和音效可通过下载获得。
目录表
Chapter 1 Your First Spacewalk
Chapter 2 Lists Can Save Your Life
第三章跟我念
第四章创建空间站
第五章空间站设备准备工作
第六章空间站设备安装
第七章进入空间站
第八章修复空间站
第九章打开你的个人物品
Appendix A Escape: The Complete Game Listing
附录B变量、列表和词典表
附录C调试清单
评论前必须登录!
注册