将 HTML 游戏移植到 Xbox 上的 UWPBringing HTML games to UWP on Xbox

Xbox One 是适用于 HTML 5 游戏的一个优秀平台。Xbox One is an excellent platform for HTML 5 games. HTML 5 游戏在 Edge 浏览器引擎上运行。HTML 5 games run on the Edge browser engine. Edge 速度较快,并且完全支持 HTML 5 和 CSS 3 功能(如 WebGL 和画布)。Edge is fast and fully supports HTML 5 and CSS 3 features such as WebGL and canvas.

Construct 2 等热门游戏引擎支持 Xbox One。Popular game engines such as Construct 2 have support for Xbox One. 我们并未对每一个 HTML 框架和引擎都进行测试,但从我们目前所了解到的情况来看,它们中的大多数都适用于 Xbox One。We haven't tested every HTML framework and engine, but from what we have seen so far, we believe most of them will work on Xbox One.

HTML 游戏与任何其他类型的游戏势均力敌。HTML games are on a level playing field with any other type of game. 开发人员可以获取本机 API(如控制器输入)、Kinect 等的完全访问权限。Developers can get full access to native APIs such as controller input, Kinect, and more.

Xbox One 在通用 Windows 平台上运行,这意味着如同其他 Microsoft 设备一样,它支持托管的 Web 应用(即完全来自服务器的应用程序)。Xbox One runs on the Universal Windows Platform and that means that, like other Microsoft devices, it supports Hosted Web Apps, which are applications that come completely from a server. 若要了解详细信息,请参阅托管的 Web 应用To learn more, see Hosted Web Apps.

本视频更加详细地介绍 Xbox 上的封装 Web 应用和托管 Web 应用,包括如何生成这些应用。This video goes into more detail about Packaged Web apps and Hosted Web Apps on Xbox, including how to build them.

若要开始操作,请下载你选择的引擎,然后查找适用于 Windows 10 应用的说明。To get started, download your engine of choice and look for instructions for Windows 10 apps. 此外,请务必阅读入门指南,以了解有关将你的主机转变为开发工具包的信息以及如何通过 Visual Studio 进行部署。Also be sure to read the getting started guide for information about turning your console into a development kit and how to deploy from Visual Studio.

另请参阅See also