2

在我的游戏中,我计划为玩家可以在游戏中购买和玩的不同级别包添加 IAP。但是在阅读了有关 IAP 的文档后,我仍然想知道一个问题:从 Apple 的服务器下载新内容,还是在游戏中使用 NSUserDefaults 解锁更好?

问题是,如果我选择选项 2,内容将很容易被破解,并且应用程序需要为我添加的每个 DLC 进行更新。

而选项1的问题是新的内容会被下载到Documents文件夹中,但是我的app会搜索资源文件夹中的级别列表(我知道实现起来并不难,但我只是说利弊)

任何人都可以告诉我哪一个是最佳实践,为什么?

提前致谢!

4

1 回答 1

0

Well, I think both options are good. Whats the size of these packs? If you have numerous iaps all consisting of new levels, id recommend to have them downloadable, imagine shipping the app without the extra levels, quite a network-loadoff.

As you are stating, option nr 1 gives you the ability to add levels dynamically. This is convenient since apple are quite slow when it comes to uploading of new builds. Come to think of it, they are not super fast when it comes to revising your DLC either.

Due to the hacking risk and initial reduction of app-filesize, I would definately go with option one but if possible, i'd provide the actual content from a private FTP server. That way, the new content is available directly.

于 2013-08-10T21:56:27.877 回答