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游戏开发经典实例
人工智能和行为
293
9.17
用人工智能增强游戏设计
问题
我们想在游戏中使用人工智能,并有效增强游戏的趣味性和良好体验。
解决方案
游戏的趣味性来自很多地方(请参考
http://8kindsoffun.com
)。作者认为,这其中
最重要的一个因素就是游戏的挑战性。对玩家来说,能够激发起挑战欲的游戏往往
是比较有趣味性的游戏。
在游戏中有限度地使用人工智能能够让游戏在众多的
iOS
游戏中更胜一筹。我们想
为玩家创建一种难度逐渐提高的具有挑战性的游戏,游戏的复杂性越来越高,玩家
就会变得深陷其中,越来越无法自拔。
在玩家进行游戏时,让玩家有机会获得一定的道具是非常有必要的,玩家利用好这
些道具就能够降低游戏的难度。同时,游戏中创建的任何人工智能或角色,不应该
获得玩家无法获得的道具。
宝物出现的过程应当显眼和缓慢,同时注意,即算要让人工智能在一定程度上获有
夺取宝物的优先权,也必须把握一定的限度。
讨论
要让游戏真正地挑起玩家的挑战欲是非常困难的,很容易出现因为游戏太难而导致
游戏失去趣味性的情况。最好方法是,随着游戏进度的缓缓推进,宝物和道具也一
个接着一个地出现,最终游戏中所有该出现的东西都出现了。游戏中的人工智能或
角色获得这些宝物的机会应当和玩家相等。否则玩家会觉得游戏太难而无法继续。
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