1

I'm writing an app for iPhone and I would like to add downloadable content to get from the apple store in the future. I understand that the Store kit gives me access to the store and helps me to make the transactions, but how the downloaded content is integrated with my app ?

How It's usually done ?, when someone creates for example, a new Item or a new weapon for his game...how It's implemented and how It's added to the app ?, the graphic resources of the item need to be already included in the original app or there is a way to add more in the future ?

I need to have special considerations with my app to make it happen ?

4

1 回答 1

2

基本上,您必须在应用程序中构建支持以处理此类可下载内容。如果您想允许下载新武器,您必须考虑如何将其集成到应用程序中。在我的脑海中,这是我能想到的你必须处理的事情:

  • 武器是什么样子的,所以您需要图形,以及将新图形资源(如 3d 模型和位图)集成到现有图形资源中的方法(也就是说,您应该能够从提供的资源文件中加载图形资源购买时使用您的应用程序以及来自下载内容的磁盘上的文件)
  • 武器如何发挥作用,例如伤害配置文件、保护配置文件(游戏中的敌人如何承受它)
  • 武器是如何获得的,例如游戏地图中的位置或其他东西,或者作为奖励,在这种情况下,您需要存储规则以检查奖励是否合理
  • 你如何获得武器的弹药?

您基本上需要考虑可下载内容如何需要在您的游戏中已经存在框架支持,以便完全融入游戏机制的各个部分。

于 2009-09-11T05:42:27.490 回答