Python Hunting: A beginner's guide to programming and game building in Python for teens, tweens and newbies.
暫譯: Python 狩獵:青少年、新手及初學者的 Python 程式設計與遊戲建構入門指南。
Brian Carling, Marley Adair
- 出版商: W. W. Norton
- 出版日期: 2016-09-11
- 售價: $980
- 貴賓價: 9.5 折 $931
- 語言: 英文
- 頁數: 327
- 裝訂: Paperback
- ISBN: 1535196955
- ISBN-13: 9781535196956
-
相關分類:
Python、程式語言
無法訂購
買這商品的人也買了...
-
$500Java 基礎與案例開發詳解
-
$300$234 -
$420$328 -
$580$383 -
$699$594 -
$380$300 -
$380$296
相關主題
商品描述
326 pages of spinning, shooting, catching, raining, eating, scoring, dying fun. Works on Windows, Mac or Linux. Will even work on a Raspberry Pi. Python Hunting throws beginners straight into the cool, creative side of things, building fun games that anyone can enjoy playing.
The steps are clear, concise and humorous. You'll learn the lingo and some cool shortcuts. You'll learn some maths but won't be confused by it. You might even learn a good joke or two. By the end, you’ll be teaching your parents and siblings how to program. More importantly, you'll learn genuine programming skills that are the foundations for working in the computer industry, regardless of whether you want to be a game builder or head off to some other area. The basics are the same and this is a great place to start.
The book’s know-how and focus on teaching in a way that kids and teens can relate to comes from Marley Adair, a teenager himself. He has loved programming since the age of five, has written all sorts of games in various languages. He has also built and programmed robots, music players and various other devices. This is the book he wishes he could have bought when he began learning Python.
Brian Carling has a knack for explaining the hard stuff in a way anyone can understand. And should you get stuck the pair of them are an email away from helping you along.
We updated the installation instructions in June 2017 now that the installation of Pygame has been made much easier using a system called pip. All is explained.
- To get the basics you'll build a Falling Rain program and a character who puts up his umbrella to keep dry.
- This runs smoothly into a Space Invaders game with randomly moving invaders and arcade style scoring. After all, space invaders aren't so different from falling rain.
- Then build the classic Pong game but with some extras like a bat that hits the ball to accelerate it and balls that bounce in a slightly random fashion.
- Next a Fly Catching Frog with an extending tongue. If you don't catch enough flies you'll starve but the flies appear randomly on the screen and only for a limited amount of time.
- And finally a two player Tank Battle with tanks you can move around the screen, moving obstacles, ammo dumps and bouncing shells.
- All through this you learn how to add start and game over screens, sound effects, graphics, game statistics such as lives and scores, and more, with each game introducing new skills and ideas.
- Python Hunting covers all the basics, such as classes, functions, loops and logic, but relates them all to the more fun aspects of programming.
- We teach graphics using the Pygame graphics library. It's easy to use and we show you how. If you want to learn graphics for games and animations we strongly recommend you use Pygame because you can simply do more with it than other GUI libraries.
Working versions or screenshots of the games are on the website at www.python-hunting.com as well as contact details where you can ask questions or get help from the authors. We'd love to hear how you are getting on.
商品描述(中文翻譯)
326 頁的旋轉、射擊、接球、下雨、吃東西、得分和死亡的樂趣。可在 Windows、Mac 或 Linux 上運行,甚至可以在 Raspberry Pi 上運行。《Python Hunting》讓初學者直接進入有趣且富有創意的世界,構建任何人都能享受的有趣遊戲。
步驟清晰、簡潔且幽默。你將學會行話和一些酷炫的快捷方式。你會學到一些數學,但不會感到困惑。你甚至可能學到一兩個好笑話。到最後,你將教你的父母和兄弟姐妹如何編程。更重要的是,你將學到真正的編程技能,這些技能是進入計算機行業的基礎,無論你想成為遊戲開發者還是進入其他領域。基礎是相同的,這是個很好的起點。
本書的專業知識和以孩子和青少年能夠理解的方式進行教學的重點來自於青少年 Marley Adair。他從五歲起就熱愛編程,已經用各種語言編寫了各種遊戲。他還建造和編程了機器人、音樂播放器和其他各種設備。這是他希望在學習 Python 時能夠購買的書籍。
Brian Carling 擅長以任何人都能理解的方式解釋困難的內容。如果你遇到困難,他們兩人隨時可以通過電子郵件幫助你。
我們在 2017 年 6 月更新了安裝說明,因為使用名為 pip 的系統使 Pygame 的安裝變得更加簡單。所有內容都有詳細解釋。
- 為了掌握基礎,你將構建一個 Falling Rain 程式,並創建一個角色,他會撐起雨傘以保持乾燥。
- 這將順利過渡到一個 Space Invaders 遊戲,裡面有隨機移動的入侵者和街機風格的得分。畢竟,太空入侵者和下雨並沒有太大區別。
- 然後構建經典的 Pong 遊戲,但增加一些額外的功能,比如可以加速球的球拍和稍微隨機彈跳的球。
- 接下來是一個 Fly Catching Frog,擁有可伸縮的舌頭。如果你沒有捕到足夠的蒼蠅,你將會餓死,但蒼蠅會隨機出現在螢幕上,並且只會出現有限的時間。
- 最後是一個雙人 Tank Battle,可以在螢幕上移動的坦克、移動障礙物、彈藥庫和彈跳的炮彈。
- 在這整個過程中,你將學會如何添加開始和遊戲結束畫面、音效、圖形、遊戲統計數據(如生命值和得分)等,每個遊戲都引入新的技能和想法。
- 《Python Hunting》涵蓋了所有基礎知識,如類、函數、循環和邏輯,但將它們與編程的更有趣方面聯繫起來。
- 我們使用 Pygame 圖形庫教授圖形。它易於使用,我們會告訴你如何使用。如果你想學習遊戲和動畫的圖形,我們強烈建議你使用 Pygame,因為它能讓你做更多的事情,超過其他 GUI 庫。
運行版本或遊戲的截圖可以在網站 www.python-hunting.com 上找到,還有聯繫方式,你可以在那裡詢問問題或獲得作者的幫助。我們很想知道你進展如何。