在应用程序商店购买的新东西如何集成到我的 iPhone 应用程序中?

发布于 2024-08-04 03:30:44 字数 232 浏览 4 评论 0原文

我正在为 iPhone 编写一个应用程序,我想添加可下载的内容以供将来从苹果商店获取。我了解商店工具包可以让我访问商店并帮助我进行交易,但是下载的内容如何与我的应用程序集成?

通常是如何完成的?例如,当有人为他的游戏创建一个新物品或新武器时...它是如何实现的以及如何将其添加到应用程序中?,该物品的图形资源需要已经包含在原始应用程序还是将来有办法添加更多应用程序?

我需要对我的应用程序进行特殊考虑才能实现这一目标?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缺⑴份安定 2024-08-11 03:30:44

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

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

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

Basically, you'll have to build support into your application to handle such downloadable content. If you want to allow downloads of new weapons, you'll have to think about how that has to be integrated into the application. Off the top of my head, here's the things I can think about that you'll have to handle:

  • What does the weapon look like, so you need graphics, and a way to integrate new graphics resources (like 3d models and bitmaps) into your existing graphics resources (that is, you should be able to load graphics resources both from the resource files supplied with your app when they buy it as well as from files on disk which comes from downloaded content)
  • How does the weapon function, like damage profiles, protection profiles (of how enemies in the game can withstand it)
  • How is the weapon obtained, like a position in a ingame map or something, or as a reward for something, in which case you need to store rules for how to check if the reward is warranted
  • How do you obtain ammo for the weapon?

You basically need to think through how downloadable content would need to have framework support already present in your game in order to be fully incorporated into the various parts of the game mechanics.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文