Swift Game Programming for Absolute Beginners
暫譯: Swift 遊戲程式設計入門指南
Arjan Egges
- 出版商: Apress
- 出版日期: 2015-07-29
- 售價: $1,760
- 貴賓價: 9.5 折 $1,672
- 語言: 英文
- 頁數: 380
- 裝訂: Paperback
- ISBN: 1484206517
- ISBN-13: 9781484206515
-
相關分類:
Apple Developer
-
相關翻譯:
零基礎學Swift游戲編程 (簡中版)
相關主題
商品描述
Swift Game Programming for Absolute Beginners teaches Apple’s Swift language in the context of four, fun and colorful games. Learn the Swift 2.0 language, and learn to create game apps for iOS at the same time – a double win!
The four games you’ll develop while reading this book are:
- Painter
- Tut’s Tomb
- Penguin Pairs
- Tick Tick
These four games are casual, arcade-style games representing the aim-and-shoot, casual, puzzle, and platform styles of game play. Professionally developed game assets form part of the book download. You’ll get professionally drawn sprites and imagery that’ll have you proud to show your learning to friends and family.
The approach in Swift Game Programming for Absolute Beginners follows the structure of a game rather than the syntax of a language. You’ll learn to create game worlds, manage game objects and game states, define levels for players to pass through, implement animations based upon realistic physics, and much more. Along the way you’ll learn the language, but always in the context of fun and games.
Swift is Apple’s new programming language introduced in 2014 to replace Objective-C as the main programming language for iOS devices and Mac OS X. Swift is a must learn language for anyone targeting Apple devices, and Swift Game Programming for Absolute Beginners provides the most fun you’ll ever have in stepping over the threshold toward eventual mastery of the language.
What youll learn
- Write applications in possibly the most important new language of the decade
- Create games to run on Apple devices such as phones and tablets, and desktops too
- Create and manage game worlds having multiple levels through which players progress
- React to player input whether from mouse, keyboard, or touch
- Achieve realistic movement of game objects through applied physics
- Prepare your games properly for commercial deployment
Who this book is for
Swift Game Programming for Absolute Beginners is for programmers and technology enthusiasts wanting to learn to program and develop applications for Apple devices such as phones and tablets. The book is also for anyone wanting to learn to program in Apple's new language named Swift. No prior knowledge of Swift is assumed. Swift Game Programming for Absolute Beginners teaches the Swift language from scratch in the context of creating a series of fun and colorful games that you'll be proud to develop and show to your friends, neighbors, and colleagues.
Table of Contents
Part I: Getting Started
1. The Swift Language
2. Game Programming Basics
3. Creating a Game World
4. Game Assets
Part II: Painter
5. Knowing What the Player is Doing
6. Reacting to Player Input
7. Basic Game Objects
8. Game Object Types
9. Colors and Collisions
10. Limited Lives
11. Organizing Game Objects
12. Finishing the Painter Game
Part III: Galactic Waste
13. Adapting to Different Devices
14. Game Object Hierarchies
15. Game Physics
16. Game Object Interaction
17. Finishing the Galactic Waste Game
Part IV: Penguin Pairs
18. Sprite Sheets
19. Storing and Recalling Game Data
20. Pairing the Penguins
21. Finishing the Penguin Pairs Game
22. The Main Game Structure
23. Animation
Part V: Tick Tick
24. Platform Game Physics
25. Intelligent Enemies
26. Adding Player Interaction
27. Finishing the Tick Tick Game
商品描述(中文翻譯)
《Swift 遊戲程式設計入門》在四款有趣且色彩繽紛的遊戲中教授 Apple 的 Swift 語言。學習 Swift 2.0 語言的同時,還能創建 iOS 的遊戲應用程式,雙重收穫!
您在閱讀本書的過程中將開發的四款遊戲是:
- Painter
- Tut’s Tomb
- Penguin Pairs
- Tick Tick
這四款遊戲是休閒的街機風格遊戲,代表了瞄準射擊、休閒、益智和平台遊戲的玩法。專業開發的遊戲資源是本書下載的一部分。您將獲得專業繪製的精靈和圖像,讓您能自豪地向朋友和家人展示您的學習成果。
《Swift 遊戲程式設計入門》的方法遵循遊戲的結構,而非語言的語法。您將學會創建遊戲世界、管理遊戲物件和遊戲狀態、為玩家定義關卡、根據現實物理實現動畫,還有更多。在這個過程中,您將學習語言,但始終是在有趣的遊戲背景下。
Swift 是 Apple 在 2014 年推出的新程式語言,取代 Objective-C 成為 iOS 設備和 Mac OS X 的主要程式語言。對於任何針對 Apple 設備的人來說,Swift 是一門「必學」的語言,而《Swift 遊戲程式設計入門》將為您提供最有趣的學習體驗,讓您邁向最終掌握這門語言的門檻。
您將學到的內容:
- 使用這十年來最重要的新語言之一編寫應用程式
- 創建可在 Apple 設備(如手機和平板電腦)及桌面上運行的遊戲
- 創建和管理具有多個關卡的遊戲世界,讓玩家逐步進行
- 對玩家的輸入(無論是來自滑鼠、鍵盤或觸控)做出反應
- 通過應用物理學實現遊戲物件的真實運動
- 正確準備您的遊戲以進行商業部署
本書適合對象:
《Swift 遊戲程式設計入門》適合希望學習為 Apple 設備(如手機和平板電腦)編程和開發應用程式的程式設計師和技術愛好者。本書也適合任何希望學習 Apple 新語言 Swift 的人。無需具備 Swift 的先前知識。《Swift 遊戲程式設計入門》從零開始教授 Swift 語言,並在創建一系列有趣且色彩繽紛的遊戲的背景下進行,讓您能自豪地開發並向朋友、鄰居和同事展示。
目錄:
**第一部分:開始**
1. Swift 語言
2. 遊戲程式設計基礎
3. 創建遊戲世界
4. 遊戲資源
**第二部分:Painter**
5. 知道玩家在做什麼
6. 對玩家輸入做出反應
7. 基本遊戲物件
8. 遊戲物件類型
9. 顏色與碰撞
10. 限制生命
11. 組織遊戲物件
12. 完成 Painter 遊戲
**第三部分:Galactic Waste**
13. 適應不同設備
14. 遊戲物件層級
15. 遊戲物理
16. 遊戲物件互動
17. 完成 Galactic Waste 遊戲
**第四部分:Penguin Pairs**
18. 精靈圖集
19. 儲存和回調遊戲數據
20. 配對企鵝
21. 完成 Penguin Pairs 遊戲
22. 主要遊戲結構
23. 動畫
**第五部分:Tick Tick**
24. 平台遊戲物理
25. 智能敵人
26. 添加玩家互動
27. 完成 Tick Tick 遊戲