Skip to Content
Swift游戏开发经典实例
book

Swift游戏开发经典实例

by Jonathon Manning, Paris Buttfield-Addison
January 2020
Intermediate to advanced
356 pages
6h 4m
Chinese
China Electric Power Press Ltd.
Content preview from Swift游戏开发经典实例
2
前言
你会发现本书的内容对所有类型的游戏都适用,当然也会有一些例外,有的技巧更
适合某种游戏一些。但总体上来说,本书不是专门针对特定种类的游戏而编写的。
本书的主要内容
本书的每一章是由多个“技巧”构成:每一个“问题”都是你在游戏开发中有可能
遇到的问题以及它的快捷解决方案。本书可以以任意顺序阅读,你不需要一章接一
章地阅读,也不需要把每一章都从头到尾读完(但我们仍然建议你按顺序阅读,否
则你可能跳过了某些关键的内容)。
每个“技巧”中包括相关问题的陈述和解决方案,即解决问题所采用的技术(或者
功能的实现)。在此之后是问题讨论,更详细地讨论问题的解决办法,使读者更加
理解方案的实现细节,注意事项以及其他相关知识。
各章内容简要介绍如下:
1
章,游戏的设计
讨论游戏的整体架构和代码组织的不同方法,定时器的各种用法,以及
iOS
块语法。还会学习如何通过块和
Operation Queue
来调度任务,以便让它们在
将来某个时候执行;并学习如何在项目中进行单元测试。
2
章,视图和菜单
介绍
UI
以及如何利用
iOS
自带的
UIKit
现实用户图形界面。除了内置的
GUI
对象,如按钮、文本框之外,
UIKit
也可以按需定制,对于某些游戏来说,
UIKit
可能是你唯一需要使用的图形界面设计工具。
3
章,输入
你将学习如何从用户获取输入并在游戏中使用这些数据,包括屏幕触摸、手势
的判断(如轻触、滑动和捏合),以及其他输入方式,比如用户当前位置,或
者从设备内置的各种传感器中获取数据。
4
章,声音
讨论声效和音乐的使用。你将学习到如何加载和播放音频文件 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精通機器學習

精通機器學習

Aurélien Géron
FreeBSD® Unleashed

FreeBSD® Unleashed

Brian Tiemann, Michael C. Urban
深入淺出代數

深入淺出代數

Tracey Pilone, Dan Pilone
Swift学习手册

Swift学习手册

Jon Manning, Paris Buttfield-Addison, Tim Nugent

Publisher Resources

ISBN: 9787519840129