您如何让您的 WP7 应用程序显示在游戏中心? [英] How do you get your WP7 app to show up in the Games Hub?

查看:34
本文介绍了您如何让您的 WP7 应用程序显示在游戏中心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 WP7 制作了一个简单的游戏,但显然仅使用 XNA 模板不足以让您的游戏出现在游戏中心.我需要什么代码才能做到这一点?

I've made a simple game for WP7 but apparently simply using the XNA template isn't enough to get your game to show up in the games hub. What code do I need to make that happen?

另外,我可以让用 Silverlight 制作的游戏也显示在游戏中心吗?如果是这样,我该怎么做?

Also, can I get games made in silverlight to show up in the Games Hub as well? If so, how do I do that?

谢谢!

推荐答案

您需要编辑 WMAppManifest.xml 文件(在 Properties [C#] 或 我的项目 [VB.NET]) 将 Genre="apps.normal"(在 元素中)设置为 Genre=apps.games".这将适用于 XNA 和 Silverlight 应用程序.请参阅Windows Phone 的应用程序清单文件了解更多详情.

You need to edit the WMAppManifest.xml file (in Properties [C#] or My Project [VB.NET]) to set Genre="apps.normal" (in the <App> element) to Genre="apps.games". This will work for both XNA and Silverlight apps. See Application Manifest File for Windows Phone for more details.

试一试,然后将它加载到您的手机上进行测试 - 看到它出现在游戏中心真是太酷了.

Give it a try and side-load it to your phone for testing - it's pretty cool to see it show up in the Games Hub.

这篇关于您如何让您的 WP7 应用程序显示在游戏中心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆