没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
iOS Swift Game
Development
C o o k b o o k
SIMPLE SOLUTIONS FOR GAME DEVELOPMENT PROBLEMS
Jonathon Manning &
Paris Butteld-Addison
iOS Swift Game
Development Cookbook
Manning &
Butteld-Addison
GAMESIOS
iOS Swift Game Development Cookbook
ISBN: 978-1-491-92080-0
US $49.99 CAN $57.99
“
From design principles
for game engines to
the practical details of
working with iOS, this
book is an invaluable
resource for any
developer who wants to
make outstanding iOS
games.
”
—Jonathan Adamczewski
engine programmer, Insomniac Games
Twitter: @oreillymedia
facebook.com/oreilly
Ready to make amazing games for the iPhone, iPad, and iPod touch? With
Apple’s Swift programming language, it’s never been easier. This updated
cookbook provides detailed recipes for managing a wide range of common
iOS game development issues, ranging from 2D and 3D math to Sprite Kit
and OpenGL to performance—all revised for Swift.
You get simple, direct solutions to common problems found in iOS game
programming. Need to figure out how to give objects physical motion, or
want a refresher on gaming-related math problems? This book provides
sample projects and straightforward answers. All you need to get started
is some familiarity with iOS development, Swift, and Objective-C.
■ Design the architecture and code layout of your game
■ Build and customize menus with UIKit
■ Detect and respond to user input
■ Use techniques to play sound eects and music
■ Learn dierent ways to store information for later use
■ Create 2D graphics with Sprite Kit
■ Create 3D graphics with Scene Kit
■ Add two-dimensional physics simulation
■ Learn beginning, intermediate, and advanced 3D graphics with
OpenGL
■ Create challenges with articial intelligence
■ Take advantage of game controllers and external displays
Jonathon Manning is a game designer and programmer who’s worked on projects
ranging from iPad games for children to instant messaging clients.
Paris Butteld-Addison is a mobile app engineer, game designer, and researcher
with a passion for making technology simpler and as engaging as possible.
Jonathon Manning and Paris Buttfield-Addison are cofounders of Secret Lab,
an independent game development studio based in Tasmania, Australia.
Jonathon Manning &
Paris Butteld-Addison
iOS Swift Game
Development
C o o k b o o k
SIMPLE SOLUTIONS FOR GAME DEVELOPMENT PROBLEMS
iOS Swift Game
Development Cookbook
Manning &
Butteld-Addison
GAMESIOS
iOS Swift Game Development Cookbook
ISBN: 978-1-491-92080-0
US $49.99 CAN $57.99
“
From design principles
for game engines to
the practical details of
working with iOS, this
book is an invaluable
resource for any
developer who wants to
make outstanding iOS
games.
”
—Jonathan Adamczewski
engine programmer, Insomniac Games
Twitter: @oreillymedia
facebook.com/oreilly
Ready to make amazing games for the iPhone, iPad, and iPod touch? With
Apple’s Swift programming language, it’s never been easier. This updated
cookbook provides detailed recipes for managing a wide range of common
iOS game development issues, ranging from 2D and 3D math to Sprite Kit
and OpenGL to performance—all revised for Swift.
You get simple, direct solutions to common problems found in iOS game
programming. Need to figure out how to give objects physical motion, or
want a refresher on gaming-related math problems? This book provides
sample projects and straightforward answers. All you need to get started
is some familiarity with iOS development, Swift, and Objective-C.
■ Design the architecture and code layout of your game
■ Build and customize menus with UIKit
■ Detect and respond to user input
■ Use techniques to play sound eects and music
■ Learn dierent ways to store information for later use
■ Create 2D graphics with Sprite Kit
■ Create 3D graphics with Scene Kit
■ Add two-dimensional physics simulation
■ Learn beginning, intermediate, and advanced 3D graphics with
OpenGL
■ Create challenges with articial intelligence
■ Take advantage of game controllers and external displays
Jonathon Manning is a game designer and programmer who’s worked on projects
ranging from iPad games for children to instant messaging clients.
Paris Butteld-Addison is a mobile app engineer, game designer, and researcher
with a passion for making technology simpler and as engaging as possible.
Jonathon Manning and Paris Buttfield-Addison are cofounders of Secret Lab,
an independent game development studio based in Tasmania, Australia.
Jonathon Manning and Paris Buttfield-Addison
SECOND EDITION
iOS Swift Game
Development Cookbook
iOS Swift Game Development Cookbook, Second Edition
by Jonathon Manning and Paris Buttfield-Addison
Copyright © 2015 Secret Lab. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Rachel Roumeliotis
Production Editor: Matthew Hacker
Copyeditor: Kim Cofer
Proofreader: Rachel Monaghan
Indexer: WordCo Indexing Services, Inc.
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Rebecca Demarest
April 2014:
First Edition
May 2015:
Second Edition
Revision History for the Second Edition:
2015-05-07: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781491920800 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. iOS Swift Game Development Cook‐
book, the cover image of a queen triggerfish, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the information and in‐
structions contained in this work are accurate, the publisher and the authors disclaim all responsibility for
errors or omissions, including without limitation responsibility for damages resulting from the use of or
reliance on this work. Use of the information and instructions contained in this work is at your own risk. If
any code samples or other technology this work contains or describes is subject to open source licenses or
the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies
with such licenses and/or rights.
ISBN: 978-1-491-92080-0
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1.
Laying Out a Game. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1. Laying Out Your Engine 1
1.2. Creating an Inheritance-Based Game Layout 2
1.3. Creating a Component-Based Game Layout 4
1.4. Calculating Delta Times 7
1.5. Detecting When the User Enters and Exits Your Game 9
1.6. Updating Based on a Timer 11
1.7. Updating Based on When the Screen Updates 11
1.8. Pausing a Game 13
1.9. Calculating Time Elapsed Since the Game Start 14
1.10. Working with Closures 15
1.11. Writing a Method That Calls a Closure 17
1.12. Working with Operation Queues 18
1.13. Performing a Task in the Future 19
1.14. Making Operations Depend on Each Other 21
1.15. Filtering an Array with Closures 22
1.16. Loading New Assets During Gameplay 22
1.17. Adding Unit Tests to Your Game 24
1.18. 2D Grids 26
2.
Views and Menus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.1. Working with Storyboards 32
2.2. Creating View Controllers 38
2.3. Using Segues to Move Between Screens 45
2.4. Using Constraints to Lay Out Views 49
2.5. Adding Images to Your Project 51
2.6. Slicing Images for Use in Buttons 53
iii
剩余404页未读,继续阅读
资源评论
- yishengabcd2016-04-04不错,对学习有帮助
- shouhuzhe102016-07-25pdf 很清楚 值得下载
- compbookjunkie2016-03-23很好的书,good
xinconan2
- 粉丝: 268
- 资源: 400
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功