向 Windows Phone 7 游戏添加试用模式和成就?
我该如何为我的 Windows Phone 7 游戏添加试用版和成就?
当发现游戏是试用版时,我该如何制作游戏,提示用户购买游戏并将他/她重定向到 AppHub 上的游戏页面?
How would I go about adding a trial version and achievements for my Windows Phone 7 game?
And how can I make the game upon finding it's a trial prompt the user to purchase the game and redirect him/her to the games page on the AppHub?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于试用版,您可以使用 IsTrial API 调用 - 有关它的信息,请参见 MSDN - 您在游戏中调用一次并为其分配游戏中的 TrialMode 值,因为不建议在游戏循环中检查此值,然后您可以拥有逻辑您的游戏中的变化取决于该值是什么 - 市场流程负责尝试和尝试的流程。在提交过程中将您的应用程序标记为具有试用模式后即可购买。
成就仅适用于支持 Xbox LIVE 的游戏,需要与 Microsoft 建立特殊的发布关系,我不确定该过程,但请尝试 create.msdn.com App Hub 网站,那里可能有信息,这并不对所有开发者开放,因为即使现在 Marketplace 中支持 Xbox LIVE 的游戏也很少
For a trial version you can use the IsTrial API call - information about it on MSDN - you call this once in your game and assign a TrialMode value in your game to it as checking this in a Game Loop is not recommended, then you can have logic in your game change depending on what this value is - the Marketplace process takes care of the process of Try & Buy once you mark your app during the submission process as having a Trial mode.
Achievements are only available for Xbox LIVE enabled games which requires a special publishing relationship with Microsoft, I'm not sure of the process but try the create.msdn.com App Hub website, there may be information there, this is not open for all developers, as even now there are very few Xbox LIVE enabled titles in Marketplace