Windows 10 游戏开发指南Windows 10 game development guide

欢迎使用 Windows 10 游戏开发指南!Welcome to the Windows 10 game development guide!

本指南提供开发通用 Windows 平台 (UWP) 游戏所需的资源和信息的端到端集合。This guide provides an end-to-end collection of the resources and information you'll need to develop a Universal Windows Platform (UWP) game. 英语(美国)版的本指南提供 PDF 格式。An English (US) version of this guide is available in PDF format.

通用 Windows 平台 (UWP) 游戏开发简介Introduction to game development for the Universal Windows Platform (UWP)

当创建 Windows 10 游戏时,你将有机会在手机、电脑和 Xbox One 上接触到世界范围内的数百万玩家。When you create a Windows 10 game, you have the opportunity to reach millions of players worldwide across phone, PC, and Xbox One. 凭借 Windows 上的 Xbox、Xbox Live、跨设备多人游戏、令人惊叹的游戏社区以及诸如通用 Windows 平台 (UWP) 和 DirectX 12 等强大的新功能, Windows 10 游戏令所有年龄和流派的玩家都感到兴奋不已。With Xbox on Windows, Xbox Live, cross-device multiplayer, an amazing gaming community, and powerful new features like the Universal Windows Platform (UWP) and DirectX 12, Windows 10 games thrill players of all ages and genres. 新的通用 Windows 平台 (UWP) 通过适用于手机、电脑和 Xbox One 的常用 API 以及为每种设备体验定制游戏的工具和选项,可跨所有 Windows 10 设备为游戏提供兼容性。The new Universal Windows Platform (UWP) delivers compatibility for your game across Windows 10 devices with a common API for phone, PC, and Xbox One, along with tools and options to tailor your game to each device experience.

本指南提供可在你开发游戏时提供帮助的端到端的信息和资源集合。This guide provides an end-to-end collection of information and resources that will help you as you develop your game. 每个部分均按照游戏开发阶段进行组织,因此你在需要时就知道在哪查找信息。The sections are organized according to the stages of game development, so you'll know where to look for information when you need it.

如果你不熟悉 Windows 或 Xbox,你可以通过入门指南学习如何开始。If you're new to developing games on Windows or Xbox, the Getting Started guide may be where you want to start off. 游戏开发资源部分还提供有关文档、程序和其他有助于创建游戏的资源的高级调查。The Game development resources section also provides a high-level survey of documentation, programs, and other resources that are helpful when creating a game. 如果你想要先看看一些 UWP 代码,请参阅游戏示例If you want to start by looking at some UWP code instead, see Game samples.

本指南在其他 Windows 10 游戏开发资源和材料可用时会进行更新。This guide will be updated as additional Windows 10 game development resources and material become available.

游戏开发资源Game development resources

从文档到开发人员计划、论坛、博客和示例,游戏开发之路上有很多资源可提供帮助。From documentation to developer programs, forums, blogs, and samples, there are many resources available to help you on your game development journey. 以下是在开始开发 Windows 10 游戏时要了解的资源综述。Here's a roundup of resources to know about as you begin developing your Windows 10 game.

备注

某些功能通过各种计划进行管理。Some features are managed through various programs. 本指南涵盖大范围资源,因此你可能会发现有些资源无法访问,具体取决于所属计划或特定的开发角色。This guide covers a broad range of resources, so you may find that some resources are inaccessible depending on the program you are in or your specific development role. 示例是解析为 developer.xboxlive.com、forums.xboxlive.com、xdi.xboxlive.com 或游戏开发人员网络 (GDN) 的链接。Examples are links that resolve to developer.xboxlive.com, forums.xboxlive.com, xdi.xboxlive.com, or the Game Developer Network (GDN). 有关与 Microsoft 合作的信息,请参阅开发人员计划For information about partnering with Microsoft, see Developer Programs.

游戏开发文档Game development documentation

在本指南中,你可以查找指向相关文档的深层链接:根据任务、技术和游戏开发阶段进行组织。Throughout this guide, you'll find deep links to relevant documentation—organized by task, technology, and stage of game development. 为了让你全面了解可用内容,以下是 Windows 10 游戏开发的主要文档门户。To give you a broad view of what's available, here are the main documentation portals for Windows 10 game development.

Windows 开发人员中心主要门户Windows Dev Center main portal Windows 开发人员中心Windows Dev Center
开发 Windows 应用Developing Windows apps 开发 Windows 应用Develop Windows apps
通用 Windows 平台应用开发Universal Windows Platform app development 适用于 Windows 10 应用的操作方法指南How-to guides for Windows 10 apps
UWP 游戏的操作方法指南How-to guides for UWP games 游戏和 DirectX Games and DirectX
DirectX 参考和概述DirectX reference and overviews DirectX 图形和游戏DirectX Graphics and Gaming
面向游戏的 AzureAzure for gaming 使用 Azure 构建和缩放游戏Build and scale your games using Azure
PlayFabPlayFab 完成 live 游戏的后端解决方案Complete backend solution for live games
适用于 Xbox One 的 UWPUWP on Xbox One 在 Xbox One 上构建 UWP 应用Building UWP apps on Xbox One
HoloLens 上的 UWPUWP on HoloLens 在 HoloLens 上构建 UWP 应用Building UWP apps on HoloLens
Xbox Live 文档Xbox Live documentation Xbox Live 开发人员指南Xbox Live developer guide
Xbox One 开发文档 (XGD)Xbox One development documentation (XGD) Xbox One 开发Xbox One Development
Xbox One 开发白皮书 (XGD)Xbox One development whitepapers (XGD) 白皮书White Papers
Mixer Interactive 文档Mixer Interactive documentation 向游戏添加交互性Add interactivity to your game

合作伙伴中心Partner Center

在合作伙伴中心注册开发人员帐户是发布 Windows 游戏的第一步。Registering a developer account in Partner Center is the first step towards publishing your Windows game. 开发人员帐户让你可以保留游戏名称和将免费或付费游戏提交到适用于所有 Windows 设备的 Microsoft Store。A developer account lets you reserve your game's name and submit free or paid games to the Microsoft Store for all Windows devices. 使用开发人员帐户管理游戏和游戏内产品、获取详细分析,以及支持全世界玩家创建绝佳体验的服务。Use your developer account to manage your game and in-game products, get detailed analytics, and enable services that create great experiences for your players around the world.

Microsoft 还提供多个开发人员计划,可帮助你开发和发布 Windows 游戏。Microsoft also offers several developer programs to help you develop and publish Windows games. 在注册合作伙伴中心帐户之前,我们建议你查看是否有合适的权限。We recommend seeing if any are right for you before registering for a Partner Center account. 有关详细信息,请转到开发人员计划For more info, go to Developer programs

开发人员计划Developer programs

Microsoft 提供多个开发人员计划,可帮助你开发和发布 Windows 游戏。Microsoft offers several developer programs to help you develop and publish Windows games. 如果你想要开发适用于 Xbox One 的游戏并在游戏中集成 Xbox Live 功能,请考虑加入开发人员计划。Consider joining a developer program if you want to develop games for Xbox One and integrate Xbox Live features in your game. 若要在 Microsoft Store 中发布游戏,还需要在合作伙伴中心创建一个开发人员帐户。To publish a game in the Microsoft Store, you'll also need to create a developer account in Partner Center .

Xbox Live 创意者计划Xbox Live Creators Program

利用 Xbox Live 创意者计划,任何人都可以将 Xbox Live 集成到其游戏中并发布到 Xbox One 和 Windows 10。The Xbox Live Creators Program allows anyone to integrate Xbox Live into their title and publish to Xbox One and Windows 10. 标准 Microsoft Store 策略之外存在简化的认证过程,但不需要概念审批。There is a simplified certification process and no concept approval is required outside of the standard Microsoft Store Policies.

你可以在没有专用开发工具包、仅使用零售硬件的情况下,在创意者计划中部署、设计和发布游戏。You can deploy, design, and publish your game in the Creators Program without a dedicated dev kit, using only retail hardware. 若要开始,请在 Xbox One 上下载开发人员模式激活应用To get started, download the Dev Mode Activation app on your Xbox One.

如果想访问主 Xbox One 应用商店中特别推荐的更多 Xbox Live 功能、专门的营销和开发支持和机会,则你可以申请 ID@Xbox 计划。If you want access to even more Xbox Live capabilities, dedicated marketing and development support, and the chance to be featured in the main Xbox One store, apply to the ID@Xbox program.

Xbox Live 创意者计划Xbox Live Creators Program 了解有关 Xbox Live Creators 计划的详细信息Learn more about the Xbox Live Creators Program

ID@Xbox

ID@Xbox 计划可帮助符合资格的游戏开发人员自行在 Windows 和 Xbox One 上发布游戏。The ID@Xbox program helps qualified game developers self-publish on Windows and Xbox One. 如果你想开发适用于 Xbox One 的应用,或将诸如玩家分数、成就和排行榜等 Xbox Live 功能添加到 Windows 10 游戏,请注册 ID@Xbox。If you want to develop for Xbox One, or add Xbox Live features like Gamerscore, achievements, and leaderboards to your Windows 10 game, sign up with ID@Xbox. 成为一名 ID@Xbox 开发人员,获取所需的工具和支持,来发挥你的创造力并最大可能地取得成功。Become an ID@Xbox developer to get the tools and support you need to unleash your creativity and maximize your success. 建议先将应用到 ID@Xbox,然后在合作伙伴中心注册开发人员帐户。We recommend that you apply to ID@Xbox first before registering for a developer account in Partner Center.

ID@Xbox 开发人员计划ID@Xbox developer program Xbox one 独立开发人员计划Independent Developer Program for Xbox One
ID@Xbox 消费者站点ID@Xbox consumer site ID@Xbox

Xbox 工具和中间件Xbox tools and middleware

Xbox 工具和中间件计划给使用游戏工具和中间件的专业开发人员颁发 Xbox 开发工具包许可证。The Xbox Tools and Middleware Program licenses Xbox development kits to professional developers of game tools and middleware. 同意加入该计划的开发人员可以将其 Xbox XDK 技术共享和分配到其他已获得授权的 Xbox 开发人员。Developers accepted into the program can share and distribute their Xbox XDK technologies to other licensed Xbox developers.

联系工具和中间件计划Contact the tools and middleware program

游戏示例Game samples

有许多 Windows 10 游戏和应用示例可以帮助你了解 Windows 10 游戏功能和快速开始开发游戏。There are many Windows 10 game and app samples available to help you understand Windows 10 gaming features and get a quick start on game development. 会定期开发和发布更多示例,所以不要忘记时不时返回到示例门户,查看一下新增内容。More samples are developed and published regularly, so don't forget to occasionally check back at sample portals to see what's new. 你还可以查看 GitHub 存储库以接收有关更改和新增内容的通知。You can also watch GitHub repos to be notified of changes and additions.

通用 Windows 平台应用示例Universal Windows Platform app samples Windows-universal-samplesWindows-universal-samples
Direct3D 12 图形示例Direct3D 12 graphics samples DirectX-图形-示例DirectX-Graphics-Samples
Direct3D 11 图形示例Direct3D 11 graphics samples directx-sdk-示例directx-sdk-samples
Direct3D 11 第一人称游戏示例Direct3D 11 first-person game sample 使用 DirectX 创建简单的 UWP 游戏Create a simple UWP game with DirectX
Direct2D 自定义图像效果示例Direct2D custom image effects sample D2DCustomEffectsD2DCustomEffects
Direct2D 渐变网格示例Direct2D gradient mesh sample D2DGradientMeshD2DGradientMesh
Direct2D 照片调整示例Direct2D photo adjustment sample D2DPhotoAdjustmentD2DPhotoAdjustment
Xbox 高级技术组公共示例Xbox Advanced Technology Group public samples Xbox-ATG 示例Xbox-ATG-Samples
Xbox Live 示例Xbox Live samples xbox live 示例xbox-live-samples
Xbox One 游戏示例 (XGD)Xbox One game samples (XGD) 示例Samples
Windows 游戏示例(MSDN 代码库)Windows game samples (MSDN Code Gallery) Microsoft Store 游戏示例Microsoft Store game samples
JavaScript 2D 游戏示例JavaScript 2D game sample 在 JavaScript 中创建 UWP 游戏Create a UWP game in JavaScript
JavaScript 3D 游戏示例JavaScript 3D game sample 使用四分之三创建 3D JavaScript 游戏Creating a 3D JavaScript game using three.js
MonoGame 2D UWP 游戏示例MonoGame 2D UWP game sample 在 MonoGame 2D 中创建 UWP 游戏Create a UWP game in MonoGame 2D

开发人员论坛Developer forums

若要提问和回答游戏开发问题以及联系游戏开发社区,开发人员论坛是一个不错的选择。Developer forums are a great place to ask and answer game development questions and connect with the game development community. 论坛也是不错的资源,从中可以查找开发人员过去遇到的并已解决的难题的现有答案。Forums can also be fantastic resources for finding existing answers to difficult issues that developers have faced and solved in the past.

发布应用和游戏开发人员论坛Publishing apps and games developer forums 发布和广告应用Publishing and ads-in-apps
UWP 应用开发人员论坛UWP apps developer forum 开发通用 Windows 平台应用Developing Universal Windows Platform apps
桌面应用程序开发人员论坛Desktop applications developer forums Windows 桌面应用程序论坛Windows desktop applications forums
DirectX Microsoft Store 游戏(存档的论坛文章)DirectX Microsoft Store games (archived forum posts) 用 DirectX 构建 Microsoft Store 游戏(已存档)Building Microsoft Store games with DirectX (archived)
Windows 10 托管的合作伙伴开发人员论坛Windows 10 managed partner developer forums XBOX 开发人员论坛: Windows 10XBOX Developer Forums: Windows 10
DirectX 论坛DirectX forums DirectX 12 论坛DirectX 12 forum
Azure 平台论坛Azure platform forums Azure 论坛Azure forum
Xbox Live 论坛Xbox Live forum Xbox Live 开发论坛Xbox Live development forum
PlayFab 论坛PlayFab forums PlayFab 论坛PlayFab forums

开发人员博客Developer blogs

开发人员博客是另一种获取有关游戏开发的最新信息的绝佳资源。Developer blogs are another great resource for the latest information about game development. 你可以查找有关新功能、实现细节、最佳实践、体系结构背景等的文章。You'll find posts about new features, implementation details, best practices, architecture background, and more.

生成适用于 Windows 的应用博客Building apps for Windows blog 构建适用于 Windows 的应用程序Building Apps for Windows
Windows 10(博客文章)Windows 10 (blog posts) Windows 10 中的帖子Posts in Windows 10
Visual Studio 工程团队博客Visual Studio engineering team blog Visual Studio 博客The Visual Studio Blog
Visual Studio 开发人员工具博客Visual Studio developer tools blogs 开发人员工具博客Developer Tools Blogs
Somasegar 的开发人员工具博客Somasegar's developer tools blog Somasegar 的博客Somasegar’s blog
DirectX 开发人员博客DirectX developer blog DirectX 开发人员博客DirectX Developer blog
DirectX 12 简介(博客文章)DirectX 12 introduction (blog post) DirectX 12DirectX 12
Visual C++ 工具团队博客Visual C++ tools team blog 视觉C++对象团队博客Visual C++ team blog
PIX 团队博客PIX team blog Windows 和 Xbox 上的 DirectX 12 游戏性能优化和调试Performance tuning and debugging for DirectX 12 games on Windows and Xbox
通用 Windows 应用部署团队博客Universal Windows App Deployment team blog 生成和部署 UWP 应用团队博客Build and deploy UWP apps team blog
 

概念和计划Concept and planning

在概念和计划阶段,你需确定游戏的外观以及将其创造出来需要使用的技术和工具。In the concept and planning stage, you're deciding what your game is going to be like and the technologies and tools you'll use to bring it to life.

游戏开发技术概述Overview of game development technologies

在开始开发适用于 UWP 的游戏时,你可以使用适用于图形、输入、音频、网络、实用工具和库的多个选项。When you start developing a game for the UWP you have multiple options available for graphics, input, audio, networking, utilities, and libraries.

如果你已经确定好将在游戏中使用的所有技术,那真是太好了!If you've already decided on all the technologies you'll be using in your game, great! 如果没有,适用于 UWP 应用的游戏技术指南很好地概述了许多可用技术, 并且强烈建议你阅读该指南,以便可帮助你了解各种选项以及如何组合使用它们。If not, the Game technologies for UWP apps guide is an excellent overview of many of the technologies available, and is highly recommended reading to help you understand the options and how they fit together.

UWP 游戏技术调查Survey of UWP game technologies UWP 应用的游戏技术Game technologies for UWP apps
 

这三个 GDC 2015 视频清楚概述了 Windows 10 游戏开发和 Windows 10 游戏体验。These three GDC 2015 videos give a good overview of Windows 10 game development and the Windows 10 gaming experience.

Windows 10 游戏开发概述(视频)Overview of Windows 10 game development (video) 开发适用于 Windows 10 的游戏Developing Games for Windows 10
Windows 10 游戏体验(视频)Windows 10 gaming experience (video) Windows 10 上的游戏消费者体验Gaming Consumer Experience on Windows 10
Microsoft 生态系统上的游戏(视频)Gaming across the Microsoft ecosystem (video) 在 Microsoft 生态系统中玩游戏的未来The Future of Gaming Across the Microsoft Ecosystem

游戏规划Game planning

以下是在规划游戏时需考虑的一些高级别概念和规划主题。These are some high level concept and planning topics to consider when planning for your game.

使你的游戏具有辅助性Make your game accessible 游戏辅助功能Accessibility for games
使用云生成游戏Build games using cloud 云游戏Cloud for games
通过你的游戏盈利Monetize your game 游戏盈利Monetization for games

选择图形技术和编程语言Choosing your graphics technology and programming language

有多种编程语言和图形技术可在 Windows 10 游戏中使用。There are several programming languages and graphics technologies available for use in Windows 10 games. 你所采用的路径具体取决于你正在开发的游戏类型、你的开发工作室的经验和偏好,以及你的游戏的特定功能要求。The path you take depends on the type of game you’re developing, the experience and preferences of your development studio, and specific feature requirements of your game. 你是使用 C#、C++ 或 JavaScript?Will you use C#, C++, or JavaScript? 还是使用 DirectX、XAML 或 HTML5?DirectX, XAML, or HTML5?

DirectXDirectX

对于最高性能的 2D 和 3D 图形以及多媒体,可选择 Microsoft DirectX。Microsoft DirectX is the choice to make for the highest-performance 2D and 3D graphics and multimedia.

DirectX 12 比以前的任何版本都更快更高效。DirectX 12 is faster and more efficient than any previous version. Direct3D 12 提供更丰富的场景、更多的对象、更复杂的效果,并且能全面利用 Windows 10 电脑和 Xbox One 上的现代 GPU 硬件。Direct3D 12 enables richer scenes, more objects, more complex effects, and full utilization of modern GPU hardware on Windows 10 PCs and Xbox One.

如果你想要使用 Direct3D 11 中熟悉的图形管道,仍然可以从添加到 Direct3D 11.3 的新呈现功能和优化功能中获益。If you want to use the familiar graphics pipeline of Direct3D 11, you’ll still benefit from the new rendering and optimization features added to Direct3D 11.3. 如果你是一名忠诚可靠基于 Win32 的桌面版 Windows API 开发人员,你仍然可以在 Windows 10 中使用该选项。And, if you’re a tried-and-true desktop Windows API developer with roots in Win32, you’ll still have that option in Windows 10.

DirectX 中的广泛功能和深度平台集成可为要求极高的游戏提供所需的功能和性能。The extensive features and deep platform integration of DirectX provide the power and performance needed by the most demanding games.

用于 UWP 开发的 DirectXDirectX for UWP development DirectX 编程DirectX programming
教程:如何创建 UWP DirectX 游戏Tutorial: How to create a UWP DirectX game 使用 DirectX 创建简单的 UWP 游戏Create a simple UWP game with DirectX
DirectX 概述和参考DirectX overviews and reference DirectX 图形和游戏DirectX Graphics and Gaming
Direct3D 12 编程指南和参考Direct3D 12 programming guide and reference Direct3D 12 图形Direct3D 12 Graphics
图形和 DirectX 12 开发视频(YouTube 频道)Graphics and DirectX 12 development videos (YouTube channel) Microsoft DirectX 12 和图形教育Microsoft DirectX 12 and Graphics Education
 

XAMLXAML

XAML 是一种易于使用的声明性 UI 语言,它具有一些便捷的功能,如动画、情节提要、数据绑定、可缩放的基于矢量的图形、自动调整大小和场景图。XAML is an easy-to-use declarative UI language with convenient features like animations, storyboards, data binding, scalable vector-based graphics, dynamic resizing, and scene graphs. XAML 非常适用于游戏 UI、菜单、子画面和 2D 图形。XAML works great for game UI, menus, sprites, and 2D graphics. 若要简化 UI 布局,则可以使用 XAML,因为它与诸如 Expression Blend 和 Microsoft Visual Studio 等设计和开发工具兼容。To make UI layout easy, XAML is compatible with design and development tools like Expression Blend and Microsoft Visual Studio. XAML 通常与 C# 结合使用,但在 C++ 是你的首选语言时,或者你的游戏对 CPU 要求较高时,C++ 也是一个不错的选择。XAML is commonly used with C#, but C++ is also a good choice if that’s your preferred language or if your game has high CPU demands.

XAML 平台概述XAML platform overview XAML 平台XAML platform
XAML UI 和控件XAML UI and controls 控件、布局和文本Controls, layouts, and text
 

HTML 5HTML 5

超文本标记语言 (HTML) 是一种常见的 UI 标记语言,适用于网页、应用和胖客户端。HyperText Markup Language (HTML) is a common UI markup language used for web pages, apps, and rich clients. Windows 游戏可将 HTML5 用作功能完备的呈现图层,以便提供 HTML 的熟悉功能、对 Universal Windows Platform 的访问权限,并支持诸如 AppCache、Web Worker、Canvas、拖放、异步编程和 SVG 等现代 Web 功能。Windows games can use HTML5 as a full-featured presentation layer with the familiar features of HTML, access to the Universal Windows Platform, and support for modern web features like AppCache, Web Workers, canvas, drag-and-drop, asynchronous programming, and SVG. 在后台,HTML 呈现将充分利用 DirectX 硬件加速的功能,使你即使不编写任何额外的代码,也仍然可以从 DirectX 的性能中获益。Behind the scenes, HTML rendering takes advantage of the power of DirectX hardware acceleration, so you can still get the performance benefits of DirectX without writing any extra code. 如果你擅长于 Web 开发、打算移植 Web 游戏或者想要使用与其他选项相比更易获取的语言和图形图层,则 HTML5 是一个不错的选择。HTML5 is a good choice if you are proficient with web development, porting a web game, or want to use language and graphics layers that can be easier to approach than the other choices. HTML5 与 JavaScript 结合使用,但也可用于调用使用 C# 或 C++/CX 创建的组件。HTML5 is used with JavaScript, but can also call into components created with C# or C++/CX.

HTML5 和文档对象模型信息HTML5 and Document Object Model information HTML 和 DOM 引用HTML and DOM reference
HTML5 W3C 建议The HTML5 W3C Recommendation HTML5HTML5
 

组合呈现技术Combining presentation technologies

Microsoft DirectX 图形基础结构 (DXGI) 通过多种图形技术提供互操作性和兼容性。The Microsoft DirectX Graphics Infrastructure (DXGI) provides interop and compatibility across multiple graphics technologies. 对于高性能图形,你可以将 XAML 与 DirectX 结合使用,具体操作方式是:将 XAML 用于菜单和其他简单 UI,而将 DirectX 用于呈现复杂的 2D 和 3D 场景。For high-performance graphics, you can combine XAML and DirectX, using XAML for menus and other simple UI, and DirectX for rendering complex 2D and 3D scenes. DXGI 还可在 Direct2D、Direct3D、DirectWrite、DirectCompute 和 Microsoft 媒体基础之间提供兼容性。DXGI also provides compatibility between Direct2D, Direct3D, DirectWrite, DirectCompute, and the Microsoft Media Foundation.

DirectX 图形基础结构编程指南和参考DirectX Graphics Infrastructure programming guide and reference DXGIDXGI
组合 DirectX 和 XAMLCombining DirectX and XAML DirectX 和 XAML 互操作DirectX and XAML interop
 

C++C++

C++/CX 是一种高性能、低开销的语言,可提供速度、兼容性和平台访问的强大组合。C++/CX is a high-performance, low overhead language that provides the powerful combination of speed, compatibility, and platform access. 利用 C++/CX,可轻松使用 Windows 10 中所有出色的游戏功能,包括 DirectX 和 Xbox Live。C++/CX makes it easy to use all of the great gaming features in Windows 10, including DirectX and Xbox Live. 你还可以重复使用现有的 C++ 代码和库。You can also reuse existing C++ code and libraries. C++/CX 可创建快捷的本机代码,该代码不会使垃圾回收产生开销,可确保你的游戏拥有出色的性能和低功耗,从而可以延长电池使用时间。C++/CX creates fast, native code that doesn’t incur the overhead of garbage collection, so your game can have great performance and low power consumption, which leads to longer battery life. 将 C++/CX 与 DirectX 或 XAML 结合使用,或使用这两者的组合来创建游戏。Use C++/CX with DirectX or XAML, or create a game that uses a combination of both.

C++/CX 参考和概述C++/CX reference and overviews 可视C++语言参考(C++/cx)Visual C++ Language Reference (C++/CX)
Visual C++ 编程指南和参考Visual C++ programming guide and reference Visual C++ Studio 2019 中的视觉对象Visual C++ in Visual Studio 2019
 

C#C#

C#(读作“C sharp”)是一种现代创新型语言,它简单、功能强大、类型安全,而且面向对象。C# (pronounced "C sharp") is a modern, innovative language that is simple, powerful, type-safe, and object-oriented. C# 在保持 C 语言的亲切和直观风格的同时,还支持应用的快速开发。C# enables rapid development while retaining the familiarity and expressiveness of C-style languages. 尽管 C# 易于使用,但它还具有许多高级语言功能,如多态性、委派、lambdas、关闭、迭代方法、协变以及语言集成查询 (LINQ) 表达式。Though easy to use, C# has numerous advanced language features like polymorphism, delegates, lambdas, closures, iterator methods, covariance, and Language-Integrated Query (LINQ) expressions. 如果你面向 XAML、想要快速开始开发你的游戏或者之前有过 C# 经验,则 C# 是一个不错的选择。C# is an excellent choice if you are targeting XAML, want to get a quick start developing your game, or have previous C# experience. C# 主要与 XAML 结合使用,因此如果你想要使用 DirectX,请改为选择 C++,或者编写你游戏的一部分作为与 DirectX 交互的 C++ 组件。C# is used primarily with XAML, so if you want to use DirectX, choose C++ instead, or write part of your game as a C++ component that interacts with DirectX. 或者考虑使用 Win2D,它是适用于 C# 和 C++ 的即时模式 Direct2D 图形库。Or, consider Win2D, an immediate mode Direct2D graphics libary for C# and C++.

C# 编程指南和参考C# programming guide and reference C# 语言参考C# language reference
 

JavaScriptJavaScript

JavaScript 是一种动态脚本语言,广泛用于现代 Web 应用程序和胖客户端应用程序。JavaScript is a dynamic scripting language widely used for modern web and rich client applications.

Windows JavaScript 应用可以采用一种简单而又直观的方式访问 Universal Windows Platform 中的强大功能 – 作为面向对象的 JavaScript 类的方法和属性。Windows JavaScript apps can access the powerful features of the Universal Windows Platform in an easy, intuitive way—as methods and properties of object-oriented JavaScript classes. 如果你来自于 Web 开发环境、已熟悉 JavaScript 或者想要使用 HTML5、CSS、WinJS 或 JavaScript 库,则对于你的游戏而言,JavaScript 是一个不错的选择。JavaScript is a good choice for your game if you’re coming from a web development environment, are already familiar with JavaScript, or want to use HTML5, CSS, WinJS, or JavaScript libraries. 如果你面向 DirectX 或 XAML,请改为选择 C# 或 C++/CX。If you’re targeting DirectX or XAML, choose C# or C++/CX instead.

JavaScript 和 Windows 运行时参考JavaScript and Windows Runtime reference JavaScript 参考JavaScript reference

使用 Windows 运行时组件组合语言Use Windows Runtime components to combine languages

借助通用 Windows 平台,可轻松将采用不同语言编写的组件结合使用。With the Universal Windows Platform, it’s easy to combine components written in different languages. C++在、 C#或 Visual Basic 中创建 Windows 运行时组件,然后从 JavaScript、 C#、 C++或 Visual Basic 调入它们。Create Windows Runtime components in C++, C#, or Visual Basic, and then call into them from JavaScript, C#, C++, or Visual Basic. 采用你所选定的语言编写你游戏的部分程序,是一个不错的方法。This is a great way to program portions of your game in the language of your choice. 借助组件,你也可以使用仅提供特定语言版本的外部库,并使用你已编写的传统代码。Components also let you consume external libraries that are only available in a particular language, as well as use legacy code you’ve already written.

如何创建 Windows 运行时组件How to create Windows Runtime components 使用 C++/CX 创建 Windows 运行时组件Windows Runtime components with C++/CX

你的游戏应该使用哪个版本的 DirectX?Which version of DirectX should your game use?

如果为游戏选择 DirectX,则需要确定要使用的版本: Microsoft Direct3D 12 或 Microsoft Direct3D 11。If you are choosing DirectX for your game, you'll need to decide which version to use: Microsoft Direct3D 12 or Microsoft Direct3D 11.

DirectX 12 比以前的任何版本都更快更高效。DirectX 12 is faster and more efficient than any previous version. Direct3D 12 提供更丰富的场景、更多的对象、更复杂的效果,并且能全面利用 Windows 10 电脑和 Xbox One 上的现代 GPU 硬件。Direct3D 12 enables richer scenes, more objects, more complex effects, and full utilization of modern GPU hardware on Windows 10 PCs and Xbox One. 由于 Direct3D 12 在较低级别工作,因此它能够向专业图形开发团队或有经验的 DirectX 11 开发团队提供最大程度优化图形所需的所有控制。Since Direct3D 12 works at a very low level, it is able to give an expert graphics development team or an experienced DirectX 11 development team all the control they need to maximize graphics optimization.

Direct3D 11.3 是一个低级别图形 API,使用熟悉的 Direct3D 编程模型,为你处理 GPU 渲染所涉及的大部分复杂工作。Direct3D 11.3 is a low level graphics API that uses the familiar Direct3D programming model and handles for you more of the complexity involved in GPU rendering. 它在 Windows 10 和 Xbox One 中也受支持。It is also supported in Windows 10 and Xbox One. 如果你拥有使用 Direct3D 11 编写的现有引擎,并且还没有准备好跳跃到 Direct3D 12,可以在 Direct3D 12 的基础上使用 Direct3D 11 实现一些性能改进。If you have an existing engine written in Direct3D 11, and you're not quite ready to make the jump to Direct3D 12, you can use Direct3D 11 on 12 to achieve some performance improvements. 版本 11.3 及以上版本包含的新渲染和优化功能在 Direct3D 12 也受支持。Versions 11.3+ contain the new rendering and optimization features enabled also in Direct3D 12.

选择 Direct3D 12 或 Direct3D 11Choosing Direct3D 12 or Direct3D 11 什么是 Direct3D 12?What is Direct3D 12?
Direct3D 11 概述Overview of Direct3D 11 Direct3D 11 图形Direct3D 11 Graphics
Direct3D 11 on 12 概述Overview of Direct3D 11 on 12 Direct3D 11 on 12Direct3D 11 on 12

桥、游戏引擎和中间件Bridges, game engines, and middleware

根据游戏需要,使用桥、游戏引擎或中间件可以节省开发和测试时间及资源。Depending on the needs of your game, using bridges, game engines, or middleware can save development and testing time and resources. 以下是一些桥、游戏引擎和中间件的概述和资源。Here are some overview and resources for bridges, game engines, and middleware.

通用 Windows 平台桥Universal Windows Platform Bridges

通用 Windows 平台桥是将现有应用或游戏移植到 UWP 的技术。Universal Windows Platform Bridges are technologies that bring your existing app or game over to the UWP. 桥是快速开始开发 UWP 游戏的绝佳方法。Bridges are a great way to get a quick start on UWP game development.

UWP 桥UWP bridges 将代码引入 WindowsBring your code to Windows
面向 iOS 的 Windows 桥Windows Bridge for iOS 将 iOS 应用程序引入 WindowsBring your iOS apps to Windows
适用于桌面应用程序(.NET 和 Win32)的 Windows 桥Windows Bridge for desktop applications (.NET and Win32) 将桌面应用程序转换为 UWP 应用Convert your desktop application to a UWP app

PlayFabPlayFab

现在作为 Microsoft 系列一部分的 PlayFab 是一个完整的实时游戏后端平台,同时也是独立工作室发展壮大的一种有效方式。Now part of the Microsoft family, PlayFab is a complete back-end platform for live games and a powerful way for independent studios to get started. 通过游戏服务、实时分析和 LiveOps 增加收入、参与度和保留期,同时削减成本。Boost revenue, engagement, and retention—while cutting costs—with game services, real-time analytics, and LiveOps.

PlayFabPlayFab 工具和服务概述Overview of tools and services
开始使用Getting started 常规入门指南General getting started guide
视频教程系列Video tutorial series 有关 PlayFab 核心系统的演示视频系列Series of demo videos about PlayFab's core systems
秘诀Recipes 热门游戏机制和设计模式示例Popular game mechanics and design pattern samples
平台Platforms 各种平台和游戏引擎的特定文档Specific documentation for various platforms and game engines
GitHub 存储库GitHub repo 获取各种平台(包括 Android、iOS、Windows、Unity 和 Unreal)的脚本和 Sdk。Get scripts and SDKs for various platforms including Android, iOS, Windows, Unity, and Unreal.
API 文档API documentation 通过类似于 REST 的 Web Api 直接访问 PlayFab 服务Access PlayFab service directly via REST-like Web APIs
论坛Forums PlayFab 论坛PlayFab forums
 

UnityUnity

Unity 提供用于创建美丽动人的 2D、3D、VR 和 AR 游戏和应用的平台。Unity offers a platform for creating beautiful and engaging 2D, 3D, VR, and AR games and apps. 它可以让你快速实现自己的视觉创意,并将你的内容提供到几乎任何媒体或设备。It enables you to realize your creative vision fast and delivers your content to virtually any media or device.

从 Unity 5.4 开始,Unity 支持 Direct3D 12 开发。Beginning with Unity 5.4, Unity supports Direct3D 12 development.

Unity 游戏引擎The Unity game engine Unity-游戏引擎Unity - Game Engine
获取 UnityGet Unity 获取 UnityGet Unity
Windows 的 Unity 文档Unity documentation for Windows Unity 手动/WindowsUnity Manual / Windows
使用 PlayFab 添加 LiveOpsAdd LiveOps using PlayFab 入门-从 Unity 游戏发出第一个 PlayFab API 调用Getting started - Make your first PlayFab API call from your Unity game
如何使用 Mixer Interactive 为游戏添加交互性How to add interactivity to your game using Mixer Interactive 入门指南Getting started guide
适用于 Unity 的 Mixer SDKMixer SDK for Unity 混音器 Unity 插件Mixer Unity plugin
适用于 Unity 的 Mixer SDK 参考文档Mixer SDK for Unity reference documentation 用于混音器 Unity 插件的 API 参考API reference for Mixer Unity plugin
将你的 Unity 游戏发布到 Microsoft StorePublish your Unity game to Microsoft Store 移植指南Porting guide
缺少与 .NET API 相关的程序集引用的疑难解答Troubleshooting missing assembly references related to .NET APIs Unity 和 UWP 中缺少 .NET ApiMissing .NET APIs in Unity and UWP
将 Unity 游戏发布为通用 Windows 平台应用(视频)Publish your Unity game as a Universal Windows Platform app (video) 如何将 Unity 游戏发布为 UWP 应用How to publish your Unity game as a UWP app
使用 Unity 制作 Windows 游戏和应用(视频)Use Unity to make Windows games and apps (video) 通过 Unity 使 Windows 游戏和应用程序Making Windows games and apps with Unity
使用 Visual Studio 的 Unity 游戏开发(视频系列)Unity game development using Visual Studio (video series) 结合使用 Unity 和 Visual Studio 2015Using Unity with Visual Studio 2015
 

HavokHavok

Havok 模块化的工具和技术套件可帮助游戏创建者达到交互式和沉浸式体验的新级别。Havok’s modular suite of tools and technologies help game creators reach new levels of interactivity and immersion. Havok 支持高度真实的物理特性、交互模拟和令人惊叹的电影制作技术。Havok enables highly realistic physics, interactive simulations, and stunning cinematics. 版本 2015.1 及更高版本正式支持 x86、64 位和 ARM 上 Visual Studio 2015 中的 UWP。Version 2015.1 and higher officially supports UWP in Visual Studio 2015 on x86, 64-bit, and ARM.

Havok 网站Havok website HavokHavok
Havok 工具套件Havok tool suite Havok 产品概述Havok Product Overview
Havok 支持论坛Havok support forums HavokHavok
 

MonoGameMonoGame

MonoGame 是最初基于 Microsoft 的 XNA Framework 4.0 的跨平台开源游戏开发框架。MonoGame is an open source, cross-platform game development framework originally based on Microsoft's XNA Framework 4.0. Monogame 当前支持 Windows、Windows Phone 和 Xbox,以及 Linux、macOS、iOS、Android 和多个其他平台。Monogame currently supports Windows, Windows Phone, and Xbox, as well as Linux, macOS, iOS, Android, and several other platforms.

MonoGameMonoGame MonoGame 网站MonoGame website
MonoGame 文档MonoGame Documentation MonoGame 文档(最新版本)MonoGame Documentation (latest)
Monogame 下载Monogame Downloads 从 MonoGame 网站下载版本、开发内部版本和源代码,或通过 NuGet 获取最新版本Download releases, development builds, and source code from the MonoGame website, or get the latest release via NuGet.
MonoGame 2D UWP 游戏示例MonoGame 2D UWP game sample 在 MonoGame 2D 中创建 UWP 游戏Create a UWP game in MonoGame 2D

Cocos2dCocos2d

Cocos2d-x 是支持生成 UWP 游戏的跨平台开源游戏开发引擎和工具套件。Cocos2d-x is a cross-platform open source game development engine and tools suite that supports building UWP games. 从版本 3 开始,还添加了 3D 功能。Beginning with version 3, 3D features are being added as well.

Cocos2d-xCocos2d-x 什么是 Cocos2d 为后盾-x?What is Cocos2d-x?
Cocos2d-x 程序员指南Cocos2d-x programmer's guide Cocos2d 为后盾-x 程序员指南Cocos2d-x Programmers Guide
Windows 10 上的 Cocos2d-x(博客文章)Cocos2d-x on Windows 10 (blog post) 在 Windows 10 上运行 Cocos2d 为后盾-xRunning Cocos2d-x on Windows 10
使用 PlayFab 添加 LiveOpsAdd LiveOps using PlayFab 入门-从 Cocos2d 为后盾游戏发出第一个 PlayFab API 调用Getting started - Make your first PlayFab API call from your Cocos2d game

Unreal EngineUnreal Engine

Unreal Engine 4 是面向所有类型的游戏和开发人员推出的一整套游戏开发工具。Unreal Engine 4 is a complete suite of game development tools for all types of games and developers. 对于要求非常高的控制台和电脑游戏,Unreal Engine 已在全球开发人员中得到广泛的采用。For the most demanding console and PC games, Unreal Engine is used by game developers worldwide.

Unreal Engine 概述Unreal Engine overview Unreal Engine 4Unreal Engine 4
使用 PlayFab 添加 LiveOps - C++Add LiveOps using PlayFab - C++ 入门-从 Unreal 游戏发出第一个 PlayFab API 调用Getting started - Make your first PlayFab API call from your Unreal game
使用 PlayFab 添加 LiveOps - 蓝图Add LiveOps using PlayFab - Blueprints 入门-从 Unreal 游戏发出第一个 PlayFab API 调用Getting started - Make your first PlayFab API call from your Unreal game

BabylonJSBabylonJS

BabylonJS 是一个完整的 JavaScript 框架,供使用 HTML5、WebGL、WebVR 和 Web 音频生成 3D 游戏。BabylonJS is a complete JavaScript framework for building 3D games with HTML5, WebGL, WebVR, and Web Audio.

BabylonJSBabylonJS BabylonJSBabylonJS
使用 HTML5 和 BabylonJS 的 WebGL 3D(视频系列)WebGL 3D with HTML5 and BabylonJS (video series) Learning WebGL 3D and BabylonJSLearning WebGL 3D and BabylonJS
使用 BabylonJS 生成跨平台 WebGL 游戏Building a cross-platform WebGL game with BabylonJS 使用 BabylonJS 开发跨平台游戏Use BabylonJS to develop a cross-platform game

移植游戏Porting your game

如果你拥有一款现有游戏,有很多可用的资源和指南可以帮助你将游戏快速移植到 UWP。If you have an existing game, there are many resources and guides available to help you quickly bring your game to the UWP. 为快速启动移植工作,你也可以考虑使用通用 Windows 平台桥To jumpstart your porting efforts, you might also consider using a Universal Windows Platform Bridge.

将 Windows 8 应用移植到通用 Windows 平台应用Porting a Windows 8 app to a Universal Windows Platform app 从 Windows 运行时 8.x 移动到 UWPMove from Windows Runtime 8.x to UWP
将 Windows 8 应用移植到通用 Windows 平台应用(视频)Porting a Windows 8 app to a Universal Windows Platform app (video) 将8.1 应用移植到 Windows 10Porting 8.1 Apps to Windows 10
将 iOS 应用移植到通用 Windows 平台应用Porting an iOS app to a Universal Windows Platform app 从 iOS 移到 UWPMove from iOS to UWP
将 Silverlight 应用移植到通用 Windows 平台应用Porting a Silverlight app to a Universal Windows Platform app 从 Windows Phone Silverlight 移到 UWPMove from Windows Phone Silverlight to UWP
从 XAML 或 Silverlight 移植到通用 Windows 平台应用(视频)Porting from XAML or Silverlight to a Universal Windows Platform app (video) 将应用从 XAML 或 Silverlight 移植到 Windows 10Porting an App from XAML or Silverlight to Windows 10
将 Xbox 游戏移植到通用 Windows 平台应用Porting an Xbox game to a Universal Windows Platform app 从 Xbox One 移植到 Windows 10 UWPPorting from Xbox One to Windows 10 UWP
从 DirectX 9 移植到 DirectX 11Porting from DirectX 9 to DirectX 11 从 DirectX 9 到通用 Windows 平台(UWP)的端口Port from DirectX 9 to Universal Windows Platform (UWP)
从 Direct3D 11 移植到 Direct3D 12Porting from Direct3D 11 to Direct3D 12 从 Direct3D 11 移植到 Direct3D 12Porting from Direct3D 11 to Direct3D 12
从 OpenGL ES 移植到 Direct3D 11Porting from OpenGL ES to Direct3D 11 从 OpenGL ES 2.0 到 Direct3D 11 的端口Port from OpenGL ES 2.0 to Direct3D 11
使用 ANGLE 将 OpenGL ES 移植到 Direct3D 11OpenGL ES to Direct3D 11 using ANGLE 夹角ANGLE
UWP 中的经典 Windows API 等效内容Classic Windows API equivalents in the UWP 通用 Windows 平台(UWP)应用中的 Windows Api 的替代方法Alternatives to Windows APIs in Universal Windows Platform (UWP) apps

原型和设计Prototype and design

现在已确定要创建的游戏类型以及用于生成游戏的工具和图形技术,可以随时开始进行设计和原型制作。Now that you've decided the type of game you want to create and the tools and graphics technology you'll use to build it, you're ready to get started with the design and prototype. 其核心是,你的游戏是通用 Windows 平台应用,所以你将从这里开始。At its core, your game is a Universal Windows Platform app, so that's where you'll begin.

通用 Windows 平台 (UWP) 简介Introduction to the Universal Windows Platform (UWP)

Windows 10 引入通用 Windows 平台 (UWP),该平台在 Windows 10 设备上提供常用 API 平台。Windows 10 introduces the Universal Windows Platform (UWP), which provides a common API platform across Windows 10 devices. UWP 发展和扩展了 Windows 运行时模型,而使其成为一致、统一的核心。UWP evolves and expands the Windows Runtime model and hones it into a cohesive, unified core. 面向 UWP 的游戏可以调用所有设备公用的 WinRT API。Games that target the UWP can call WinRT APIs that are common to all devices. 因为 UWP 提供有保证的 API 层,所以你可以选择创建一个将在 Windows 10 设备上安装的应用包。Because the UWP provides guaranteed API layers, you can choose to create a single app package that will install across Windows 10 devices. 并且如果你需要,你的游戏仍可以调用特定于运行游戏的设备的 API(包括一些经典的 Win32 和 .NET Windows API)。And if you want to, your game can still call APIs (including some classic Windows APIs from Win32 and .NET) that are specific to the devices your game runs on.

以下是详细讨论通用 Windows 平台应用的出色指南,建议你阅读这些指南以帮助你了解该平台。The following are excellent guides that discuss the Universal Windows Platform apps in detail, and are recommended reading to help you understand the platform.

通用 Windows 平台应用简介Introduction to Universal Windows Platform apps 什么是通用 Windows 平台应用?What's a Universal Windows Platform app?
UWP 概述Overview of the UWP UWP 应用指南Guide to UWP apps
 

UWP 开发入门Getting started with UWP development

可轻松快速地完成通用 Windows 平台应用开发的准备工作。Getting set up and ready to develop a Universal Windows Platform app is quick and easy. 以下指南将指导你分步完成该过程。The following guides take you through the process step-by-step.

UWP 开发入门Getting started with UWP development Windows 应用入门Get started with Windows apps
开始 UWP 开发Getting set up for UWP development 准备工作Get set up

如果你是 UWP 编程的“完全初学者”,并考虑在游戏中使用 XAML(请参阅选择图形技术和编程语言), 面向完全初学者的 Windows 10 开发视频系列是不错的起点。If you're an "absolute beginner" to UWP programming, and are considering using XAML in your game (see Choosing your graphics technology and programming language), the Windows 10 development for absolute beginners video series is a good place to start.

使用 XAML 进行 Windows 10 开发的初学者指南(视频系列)Beginners guide to Windows 10 development with XAML (Video series) 适用于绝对初学者的 Windows 10 开发Windows 10 development for absolute beginners
宣布推出使用 XAML 的 Windows 10 完全初学者系列(博客文章)Announcing the Windows 10 absolute beginners series using XAML (blog post) 适用于绝对初学者的 Windows 10 开发Windows 10 development for absolute beginners

UWP 开发概念UWP development concepts

通用 Windows 平台应用开发概述Overview of Universal Windows Platform app development 开发 Windows 应用Develop Windows apps
UWP 中的网络编程概述Overview of network programming in the UWP 网络和 Web 服务Networking and web services
在游戏中使用 Windows.Web.HTTP 和 Windows.Networking.SocketsUsing Windows.Web.HTTP and Windows.Networking.Sockets in games 游戏网络Networking for games
UWP 中的异步编程概念Asynchronous programming concepts in the UWP 异步编程Asynchronous programming

Windows 桌面 Api 到 UWPWindows Desktop APIs to UWP

下面是帮你将 Windows 桌面游戏移动到 UWP 的一些链接。These are some links to help you move your Windows desktop game to UWP.

使用现有的 C++ 代码进行 UWP 游戏开发Use existing C++ code for UWP game development 如何:在 UWP 应用C++中使用现有代码How to: Use existing C++ code in a UWP app
适用于 Win32 的 UWP API 和 COM APIUWP APIs for Win32 and COM APIs UWP 应用的 Win32 和 COM ApiWin32 and COM APIs for UWP apps
UWP 中不受支持的 CRT 功能Unsupported CRT functions in UWP 通用 Windows 平台应用中不支持的 CRT 函数CRT functions not supported in Universal Windows Platform apps
Windows API 的替代项Alternatives for Windows APIs 通用 Windows 平台(UWP)应用中的 Windows Api 的替代方法Alternatives to Windows APIs in Universal Windows Platform (UWP) apps
 

进程周期管理Process lifetime management

进程周期管理(或称应用生命周期)介绍通用 Windows 平台应用可以转换的各种激活状态。Process lifetime management, or app lifecyle, describes the various activation states that a Universal Windows Platform app can transition through. 你的游戏不仅可以激活、暂停、恢复或终止,还可以通过多种方式在这些状态中转换。Your game can be activated, suspended, resumed, or terminated, and can transition through those states in a variety of ways.

处理应用生命周期转换Handling app lifecyle transitions 应用生命周期App lifecycle
使用 Microsoft Visual Studio 触发应用转换Using Microsoft Visual Studio to trigger app transitions 如何在 Visual Studio 中触发 UWP 应用的挂起、继续和后台事件How to trigger suspend, resume, and background events for UWP apps in Visual Studio
 

设计游戏用户体验Designing game UX

出色的游戏源自于获得灵感的设计。The genesis of a great game is inspired design.

游戏与应用共享一些通用的用户界面元素和设计原则,不过游戏通常具有独特的外观且以用户体验为设计目标。Games share some common user interface elements and design principles with apps, but games often have a unique look, feel, and design goal for their user experience. 当游戏设计充分考虑了以下两方面时,你的游戏必然会取得成功:游戏应何时使用经过测试的用户体验以及应何时打破常规进行创新?Games succeed when thoughtful design is applied to both aspects—when should your game use tested UX, and when should it diverge and innovate? 你为游戏所选择的呈现技术(DirectX、XAML、HTML5 或这三者的任意组合)可能会影响实现细节,但在大多数情况下,你所应用的设计准则不受该选择的影响。The presentation technology that you choose for your game—DirectX, XAML, HTML5, or some combination of the three—will influence implementation details, but the design principles you apply are largely independent of that choice.

除用户体验设计之外,诸如级别设计、速度、全局设计和其他方面等游戏玩法设计本身就是一种艺术形式:这由你和你的团队决定,本开发指南中未对其进行介绍。Separately from UX design, gameplay design such as level design, pacing, world design, and other aspects is an art form of its own—one that's up to you and your team, and not covered in this development guide.

UWP 设计基础知识和指南UWP design basics and guidelines 设计 UWP 应用Designing UWP apps
设计应用生命周期状态Designing for app lifecycle states 启动、挂起和恢复的 UX 指导原则UX guidelines for launch, suspend, and resume
设计适用于 Xbox One 和电视屏幕的 UWP 应用Design your UWP app for Xbox One and television screens 针对 Xbox 和电视进行设计Designing for Xbox and TV
面向多个设备外形规格(视频)Targeting multiple device form factors (video) 为 Windows Core World 设计游戏Designing Games for a Windows Core World
 

颜色指南和调色板Color guideline and palette

在游戏中遵循一致的颜色指南,有助于美化外观、辅助导航,并让玩家清楚地了解菜单和 HUD 功能。Following a consistent color guideline in your game improves aesthetics, aids navigation, and is a powerful tool to inform the player of menu and HUD functionality. 一致的游戏元素(如警告、危害、XP 和成就)颜色可使 UI 更简洁明了,同时减少对显式标签的需求。Consistent coloring of game elements like warnings, damage, XP, and achievements can lead to cleaner UI and reduce the need for explicit labels.

颜色指南Color guide 最佳做法:颜色Best Practices: Color
 

版式Typography

合理使用版式可为游戏带来许多方面的改进,包括 UI 布局、导航、可读性、氛围、品牌以及玩家沉浸式体验。The appropriate use of typography enhances many aspects of your game, including UI layout, navigation, readability, atmosphere, brand, and player immersion.

版式指南Typography guide 最佳做法:版式Best Practices: Typography
 

UI 地图UI map

UI 地图是一个游戏导航布局,在其中菜单以流程图的形式呈现。A UI map is a layout of game navigation and menus expressed as a flowchart. UI 地图可帮助所有参与其中的利益相关方了解游戏的界面和导航路径,并且可在开发周期的早期便揭露出潜在的障碍和死角。The UI map helps all involved stakeholders understand the game’s interface and navigation paths, and can expose potential roadblocks and dead ends early in the development cycle.

UI 地图指南UI map guide 最佳做法: UI 映射Best Practices: UI Map

游戏音频Game audio

关于使用 XAudio2、XAPO 和 Windows Sonic 在游戏中实现音频的指南和参考。Guides and references for implementing audio in games using XAudio2, XAPO, and Windows Sonic. XAudio2 是一款低级别音频 API,可为开发高性能音频引擎提供信号处理和混合的基础。XAudio2 is a low-level audio API that provides signal processing and mixing foundation for developing high performance audio engines. XAPO API 允许创建跨平台音频处理对象 (XAPO) 以在 Windows 和 Xbox 上用于 XAudio2。XAPO API allows the creation of cross-platform audio processing objects (XAPO) for use in XAudio2 on both Windows and Xbox. 利用 Windows Sonic 音频支持,你可以为游戏或流媒体应用程序添加 Dolby Atmos for Home Theater、Dolby Atmos for Headphones 和 Windows HRTF 支持。Windows Sonic audio support allows you to add Dolby Atmos for Home Theater, Dolby Atmos for Headphones, and Windows HRTF support to your game or streaming media application.

XAudio2 APIXAudio2 APIs XAudio2 的编程指南和 API 参考Programming guide and API reference for XAudio2
创建跨平台音频处理对象Create cross-platform audio processing objects XAPO 概述XAPO Overview
音频概念简介Intro to audio concepts 游戏音频Audio for games
Windows Sonic 概述Windows Sonic overview 空间音效Spatial sound
Windows Sonic 空间音效示例Windows Sonic spatial sound samples Xbox 高级技术组音频示例Xbox Advanced Technology Group audio samples
了解如何将 Windows Sonic 集成到你的游戏中(视频)Learn how to integrate Windows Sonic into your games (video) 为 Xbox 和 Windows 引入空间音频功能Introducing Spatial Audio Capabilities for Xbox and Windows

DirectX 开发DirectX development

适用于 DirectX 游戏开发的指南和参考。Guides and references for DirectX game development.

用于 UWP 开发的 DirectXDirectX for UWP development DirectX 编程DirectX programming
教程:如何创建 UWP DirectX 游戏Tutorial: How to create a UWP DirectX game 使用 DirectX 创建简单的 UWP 游戏Create a simple UWP game with DirectX
与 UWP 应用模型的 DirectX 交互DirectX interaction with the UWP app model 应用对象和 DirectXThe app object and DirectX
图形和 DirectX 12 开发视频(YouTube 频道)Graphics and DirectX 12 development videos (YouTube channel) Microsoft DirectX 12 和图形教育Microsoft DirectX 12 and Graphics Education
DirectX 概述和参考DirectX overviews and reference DirectX 图形和游戏DirectX Graphics and Gaming
Direct3D 12 编程指南和参考Direct3D 12 programming guide and reference Direct3D 12 图形Direct3D 12 Graphics
DirectX 12 基础(视频)DirectX 12 fundamentals (video) 更好的功率,更好的性能:在 DirectX 12 上游戏Better Power, Better Performance: Your Game on DirectX 12

了解 Direct3D 12Learning Direct3D 12

了解 Direct3D 12 中的更改以及如何使用 Direct3D 12 开始编程。Learn what changed in Direct3D 12 and how to start programming using Direct3D 12.

设置编程环境Set up programming environment Direct3D 12 编程环境设置Direct3D 12 programming environment setup
如何创建基本组件How to create a basic component 创建基本的 Direct3D 12 组件Creating a basic Direct3D 12 component
Direct3D 12 中的更改Changes in Direct3D 12 从 Direct3D 11 迁移到 Direct3D 12 的重要更改Important changes migrating from Direct3D 11 to Direct3D 12
如何从 Direct3D 11 移植到 Direct3D 12How to port from Direct3D 11 to Direct3D 12 从 Direct3D 11 移植到 Direct3D 12Porting from Direct3D 11 to Direct3D 12
资源绑定概念(涉及描述符、描述符表、描述符堆以及根签名)Resource binding concepts (covering descriptor, descriptor table, descriptor heap, and root signature) Direct3D 12 中的资源绑定Resource binding in Direct3D 12
管理内存Managing memory Direct3D 12 中的内存管理Memory management in Direct3D 12
 

DirectX 工具包和库DirectX Tool Kit and libraries

DirectX 工具包、DirectX 纹理处理库、DirectXMesh 几何图形处理库、UVAtlas 库和 DirectXMath 库提供用于 DirectX 开发的纹理、网格、子画面以及其他实用工具功能和帮助程序类。The DirectX Tool Kit, DirectX texture processing library, DirectXMesh geometry processing library, UVAtlas library, and DirectXMath library provide texture, mesh, sprite, and other utility functionality and helper classes for DirectX development. 这些库可以帮助你节省开发时间和精力。These libraries can help you save development time and effort.

获取用于 DirectX 11 的 DirectX 工具包Get DirectX Tool Kit for DirectX 11 DirectXTKDirectXTK
获取用于 DirectX 12 的 DirectX 工具包Get DirectX Tool Kit for DirectX 12 DirectXTK 12DirectXTK 12
获取 DirectX 纹理处理库Get DirectX texture processing library DirectXTexDirectXTex
获取 DirectXMesh 几何图形处理库Get DirectXMesh geometry processing library DirectXMeshDirectXMesh
获取用于创建和打包 isochart 纹理图集的 UVAtlasGet UVAtlas for creating and packing isochart texture atlas UVAtlasUVAtlas
获取 DirectXMath 库Get the DirectXMath library DirectXMathDirectXMath
DirectXTK 中的 Direct3D 12 支持(博客文章)Direct3D 12 support in the DirectXTK (blog post) 支持 DirectX 12Support for DirectX 12

合作伙伴提供的 DirectX 资源DirectX resources from partners

以下是外部合作伙伴创建的其他一些 DirectX 文档。These are some additional DirectX documentation created by external partners.

Nvidia:DX12 注意事项(博客文章)Nvidia: DX12 Do's and Don'ts (blog post) Nvidia Gpu 上的 DirectX 12DirectX 12 on Nvidia GPUs
Intel:借助 DirectX 12 实现高效渲染Intel: Efficient rendering with DirectX 12 Intel 图形上的 DirectX 12 渲染DirectX 12 rendering on Intel Graphics
Inte:DirectX 12 中的多适配器支持Intel: Multi adapter support in DirectX 12 如何使用 DirectX 12 实现显式多适配器应用程序How to implement an explicit multi-adapter application using DirectX 12
Intel:DirectX 12 教程Intel: DirectX 12 tutorial Intel、Suzhou 蜗牛和 Microsoft 的协作白皮书Collaborative white paper by Intel, Suzhou Snail and Microsoft

生产Production

你的工作室现在完全参与并转向生产周期,并且整个团队都分配了工作。Your studio is now fully engaged and moving into the production cycle, with work distributed throughout your team. 通过优化、重构和扩展原型,使其成为完整的游戏。You're polishing, refactoring, and extending the prototype to craft it into a full game.

通知和动态磁贴Notifications and live tiles

磁贴是游戏在“开始”菜单上的表示形式。A tile is your game's representation on the Start Menu. 磁贴和通知可以吸引玩家的注意力,即使他们当前并未玩你的游戏也是如此。Tiles and notifications can drive player interest even when they aren't currently playing your game.

开发磁贴和锁屏提醒Developing tiles and badges 磁贴、锁屏提醒和通知Tiles, badges, and notifications
动态磁贴和通知演示示例Sample illustrating live tiles and notifications 通知示例Notifications sample
自适应磁贴模板(博客文章)Adaptive tile templates (blog post) 自适应磁贴模板-架构和文档Adaptive Tile Templates - Schema and Documentation
设计磁贴和锁屏提醒Designing tiles and badges 磁贴和徽章指南Guidelines for tiles and badges
交互开发动态磁贴模板的 Windows 10 应用Windows 10 app for interactively developing live tile templates 通知可视化工具Notifications Visualizer
适用于 Visual Studio 的 UWP 磁贴生成器扩展UWP Tile Generator extension for Visual Studio 使用单个图像创建全部所需磁贴的工具Tool for creating all required tiles using single image
适用于 Visual Studio 的 UWP 磁贴生成器扩展(博客文章)UWP Tile Generator extension for Visual Studio (blog post) 有关使用 UWP 磁贴生成器工具的提示Tips on using the UWP Tile Generator tool
 

启用应用内产品(外接程序)购买Enable in-app product (add-on) purchases

外接程序(应用内产品)是播放机可以在游戏中购买的补充项目。An add-on (in-app product) is a supplementary item that players can purchase in-game. 外接程序可以是游戏级别、物品或玩家可能会喜欢的任何其他内容。Add-ons can be game levels, items, or anything else that your players might enjoy. 适当地使用外接程序可以提供收入,同时改善游戏体验。Used appropriately, add-ons can provide revenue while improving the game experience. 通过合作伙伴中心定义和发布游戏的外接程序,并在游戏代码中启用应用内购买。You define and publish your game's add-ons through Partner Center, and enable in-app purchases in your game's code.

持久性加载项Durable add-ons 启用应用内产品购买Enable in-app product purchases
可耗用加载项Consumable add-ons 启用可消费应用内产品购买Enable consumable in-app product purchases
附加项详细信息和提交Add-on details and submission 加载项提交Add-on submissions
监视你的游戏的附加销售和人口统计Monitor add-on sales and demographics for your game 加载项购置报告Add-on acquisitions report
 

调试、性能优化和监视Debugging, performance optimization, and monitoring

若要优化性能,请利用 Windows 10 中的游戏模式,通过充分利用当前硬件的能力,为玩家提供可能最佳的游戏体验。To optimize performance, take advantage of Game Mode in Windows 10 to provide your gamers with the best possible gaming experience by fully utilizing the capacity of their current hardware.

Windows Performance Toolkit (WPT) 包含各种性能监控工具,这些工具可生成有关 Windows 操作系统和应用程序的详细性能概况。The Windows Performance Toolkit (WPT) consists of performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications. 该工具包在监视内存使用量和改善游戏性能方面尤其有用。This is especially useful for monitoring memory usage and improving game performance. Windows Performance Toolkit 包含在 Windows 10 SDK 和 Windows ADK 中。The Windows Performance Toolkit is included in the Windows 10 SDK and Windows ADK. 该工具包包含两个独立的工具:Windows Performance Recorder (WPR) 和 Windows Performance Analyzer (WPA)。This toolkit consists of two independent tools: Windows Performance Recorder (WPR) and Windows Performance Analyzer (WPA). ProcDump 是 Windows Sysinternals 的一部分,也是监视 CPU 峰值的命令行实用程序,并且会在游戏崩溃期间生成转储文件。ProcDump, which is part of Windows Sysinternals, is a command-line utility that monitors CPU spikes and generates dump files during game crashes.

测试你的代码性能Performance test your code 基于云的负载测试Cloud based load testing
使用游戏设备信息获取 Xbox 主机类型Get Xbox console type using Gaming Device Information 游戏设备信息Gaming Device Information
使用游戏模式 API 独占访问或优先访问硬件资源来提高性能Improve performance by getting exclusive or priority access to hardware resources using Game Mode APIs 游戏模式Game Mode
从 Windows 10 SDK 获取 Windows Performance Toolkit (WPT)Get Windows Performance Toolkit (WPT) from Windows 10 SDK Windows 10 SDKWindows 10 SDK
从 Windows ADK 获取 Windows Performance Toolkit (WPT)Get Windows Performance Toolkit (WPT) from Windows ADK Windows ADKWindows ADK
使用 Windows Performance Analyzer 对无响应 UI 问题进行疑难解答(视频)Troubleshoot unresponsible UI using Windows Performance Analyzer (video) WPA 的关键路径分析Critical path analysis with WPA
使用 Windows Performance Recorder 诊断内存使用量和泄露(视频)Diagnose memory usage and leaks using Windows Performance Recorder (video) 内存占用量和泄漏Memory footprint and leaks
获取 ProcDumpGet ProcDump ProcDumpProcDump
了解如何使用 ProcDump(视频)Learn to use ProcDump (video) 配置 ProcDump 以创建转储文件Configure ProcDump to create dump files

高级 DirectX 技术和概念Advanced DirectX techniques and concepts

部分 DirectX 开发可能需做到细致入微,所以会很复杂。Some portions of DirectX development can be nuanced and complex. 当你在生产中需要深入了解 DirectX 引擎的细节或调试性能难题时, 本部分中的资源和信息可起到帮助作用。When you get to the point in production where you need to dig down into the details of your DirectX engine, or debug difficult performance problems, the resources and information in this section can help.

Windows 上的 PIXPIX on Windows 适用于 Windows 上的 DirectX 12 的性能优化和调试工具Performance tuning and debugging tool for DirectX 12 on Windows
用于 D3D12 开发的调试和验证工具(视频)Debugging and validation tools for D3D12 development (video) 通过 PIX 和 GPU 验证进行 D3D12 性能优化和调试D3D12 Performance Tuning and Debugging with PIX and GPU Validation
优化图形和性能(视频)Optimizing graphics and performance (video) 高级 DirectX 12 图形和性能Advanced DirectX 12 Graphics and Performance
DirectX 图形调试(视频)DirectX graphics debugging (video) 使用 DirectX 工具解决游戏中的困难图形问题Solve the tough graphics problems with your game using DirectX Tools
用于调试 DirectX 12 的 Visual Studio 2015 工具(视频)Visual Studio 2015 tools for debugging DirectX 12 (video) Visual Studio 2015 中适用于 Windows 10 的 DirectX 工具DirectX tools for Windows 10 in Visual Studio 2015
Direct3D 12 编程指南Direct3D 12 programming guide Direct3D 12 编程指南Direct3D 12 Programming Guide
组合 DirectX 和 XAMLCombining DirectX and XAML DirectX 和 XAML 互操作DirectX and XAML interop

高动态范围 (HDR) 内容开发High dynamic range (HDR) content development

构建使用 HDR 全彩功能的游戏内容。Build game content that uses the full color capabilities of HDR.

HDR 和颜色概念简介(视频)Introduction to HDR and color concepts (video) 在 DirectX 中照明 HDR 和高级颜色Lighting up HDR and advanced color in DirectX
了解如何呈现 HDR 内容以及如何检测当前显示器是否支持它Learn how to render HDR content and detect whether the current display supports it HDR 示例HDR sample
使用 DirectX 创建和配置高级颜色Create and configure an advanced color using DirectX Direct2D 高级图像呈现示例Direct2D advanced color image rendering sample

全球化和本地化Globalization and localization

针对 Windows 平台开发全球通用的游戏,并了解内置于 Microsoft 热门产品中的国际功能。Develop world-ready games for the Windows platform and learn about the international features built into Microsoft’s top products.

为全球市场准备你的游戏Preparing your game for the global market 面向全球受众的开发指南Guidelines when developing for a global audience
将语言、文化与技术桥接在一起Bridging languages, cultures, and technology 语言约定和标准 Microsoft 术语的联机资源Online resource for language conventions and standard Microsoft terminology

提交和发布游戏Submitting and publishing your game

以下指南和信息可帮助你尽可能顺利地完成发布和提交过程。The following guides and information help make the publishing and submission process as smooth as possible.

发布Publishing

你将使用合作伙伴中心来发布和管理你的游戏包。You'll use Partner Center to publish and manage your game packages.

合作伙伴中心应用发布Partner Center app publishing 发布 Windows 应用Publish Windows apps
合作伙伴中心高级发布(GDN)Partner Center advanced publishing (GDN) 合作伙伴中心高级发布指南Partner Center advanced publishing guide
使用 Azure Active Directory (AAD)将用户添加到合作伙伴中心帐户Use Azure Active Directory (AAD) to add users to your Partner Center account 管理帐户用户Manage account users
对你的游戏分级(博客文章)Rating your game (blog post) 使用 IARC 系统分配年龄分级的单个工作流Single workflow to assign age ratings using IARC system

打包和上载Packaging and uploading

了解如何使用流式安装和可选包(视频)Learn to use streaming install and optional packages (video) Nextgen UWP 应用分发:构建可扩展、流能力的组件化应用Nextgen UWP app distribution: Building extensible, stream-able, componentized apps
划分和组合内容以启用流式安装Divide and group content to enable streaming install UWP 应用流式处理安装UWP App Streaming install
创建 DLC 游戏内容等可选包Create optional packages like DLC game content 可选包和相关集创作Optional packages and related set authoring
打包 UWP 游戏Package your UWP game 打包应用Packaging apps
打包 UWP DirectX 游戏Package your UWP DirectX game 打包 UWP DirectX 游戏Package your UWP DirectX game
以第三方开发人员身份打包游戏(博客文章)Packaging your game as a 3rd party developer (blog post) 在不使用发布者的存储帐户访问权限的情况下创建 uploadable 包Create uploadable packages without publisher's store account access
使用 MakeAppx 创建应用包和应用包捆绑包Creating app packages and app package bundles using MakeAppx 使用应用包装工具 Makeappx.exe 创建包Create packages using app packager tool MakeAppx.exe
使用 SignTool 对你的文件进行数字签名Signing your files digitally using SignTool 使用 SignTool 对文件进行签名并验证文件中的签名Sign files and verify signatures in files using SignTool
上载游戏和控制游戏版本Uploading and versioning your game 上载应用程序包Upload app packages

策略和认证Policies and certification

不要让认证问题延迟游戏发布。Don't let certification issues delay your game's release. 以下是需要注意的策略和常见认证问题。Here are policies and common certification issues to be aware of.

Microsoft Store 应用开发人员协议Microsoft Store App Developer Agreement 应用开发人员协议App Developer Agreement
在 Microsoft Store 中发布应用的策略Policies for publishing apps in the Microsoft Store Microsoft Store 策略Microsoft Store Policies
如何避免一些常见的应用认证问题How to avoid some common app certification issues 避免常见证书失败Avoid common certification failures
 

应用商店清单 (StoreManifest.xml)Store manifest (StoreManifest.xml)

应用商店清单 (StoreManifest.xml) 是一种可选的配置文件,可包含在应用包中。The store manifest (StoreManifest.xml) is an optional configuration file that can be included in your app package. 应用商店清单提供不属于 AppxManifest.xml 文件的其他功能。The store manifest provides additional features that are not part of the AppxManifest.xml file. 例如,如果目标设备不具备指定的最低 DirectX 功能级别或指定的最小系统内存,你可以使用应用商店清单阻止游戏安装。For example, you can use the store manifest to block installation of your game if a target device doesn't have the specified minimum DirectX feature level, or the specified minimum system memory.

应用商店清单架构Store manifest schema Storemanifest.xml 架构(Windows 10)StoreManifest schema (Windows 10)
 

游戏生命周期管理Game lifecycle management

完成开发并交付游戏并不意味着“游戏结束”。After you've finished development and shipped your game, it's not "game over". 你可能完成了一个版本的开发,但你在市场中的游戏之路才刚刚开始。You may be done with development on version one, but your game's journey in the marketplace has only just begun. 你会想要监视使用情况和错误报告、回复用户反馈以及发布游戏更新。You'll want to monitor usage and error reporting, respond to user feedback, and publish updates to your game.

合作伙伴中心分析和促销Partner Center analytics and promotion

合作伙伴中心分析Partner Center analytics 分析应用性能Analyze app performance
了解客户在游戏中如何被 Xbox 功能所吸引Learn how your customers are engaging with the Xbox features in your game Xbox analytics 报表Xbox analytics report
回复客户评论Responding to customer reviews 回复客户评论Respond to customer reviews
推广游戏的方法Ways to promote your game 推广你的应用Promote your apps
 

Visual Studio Application InsightsVisual Studio Application Insights

Visual Studio Application Insights 提供关于发布的游戏的性能、遥测和使用情况分析。Visual Studio Application Insights provides performance, telemetry, and usage analytics for your published game. Application Insights 可帮助你检测和解决游戏发布后出现的问题、持续监视和改善使用情况,并了解玩家如何继续与游戏交互。Application Insights helps you detect and solve issues after your game is released, continuously monitor and improve usage, and understand how players are continuing to interact with your game. Application Insights 的工作原理是向你的应用添加一个 SDK,它会将遥测数据发送到 Azure 门户Application Insights works by adding an SDK into your app, which sends telemetry to the Azure portal.

应用程序性能和使用情况分析Application performance and usage analytics Visual Studio Application InsightsVisual Studio Application Insights
在 Windows 应用中启用 Application InsightsEnable Application Insights in Windows apps Windows Phone 和应用商店应用的 Application InsightsApplication Insights for Windows Phone and Store apps

第三方分析和推广解决方案Third party solutions for analytics and promotion

使用 GameAnalytics 了解玩家行为Understand player behavior using GameAnalytics GameAnalyticsGameAnalytics
将 UWP 游戏连接到 Google AnalyticsConnect your UWP game to Google Analytics 获取 Google Analytics Windows SDKGet Windows SDK for Google Analytics
了解如何使用适用于 Google Analytics 的 Windows SDK(视频)Learn how to use Windows SDK for Google Analytics (video) Google Analytics Windows SDK 入门Getting started with Windows SDK for Google Analytics
使用 Facebook 应用安装广告向 Facebook 用户推广游戏Use Facebook App Installs Ads to promote your game to Facebook users 获取 Facebook Windows SDKGet Windows SDK for Facebook
了解如何使用 Facebook 应用安装广告(视频)Learn how to use Facebook App Installs Ads (video) Facebook Windows SDK 入门Getting started with Windows SDK for Facebook
使用 Vungle 将视频广告添加到游戏中Use Vungle to add video ads into your games 获取 Vungle Windows SDKGet Windows SDK for Vungle
 

创建和管理内容更新Creating and managing content updates

若要更新发布的游戏,请提交带有更高版本号的新应用包。To update your published game, submit a new app package with a higher version number. 程序包通过提交和认证后将自动作为更新向客户提供。After the package makes its way through submission and certification, it will automatically be available to customers as an update.

更新和控制游戏版本Updating and versioning your game 包版本编号Package version numbering
游戏程序包管理指南Game package management guidance 应用包管理指南Guidance for app package management

将 Xbox Live 添加到游戏Adding Xbox Live to your game

Xbox Live 是首要游戏网络,连接着世界各地的数百万玩家。Xbox Live is a premier gaming network that connects millions of gamers across the world. 开发人员获取可以有机增加其游戏受众的 Xbox Live 功能的访问权限,包括 Xbox Live 状态、排行榜、云保存、游戏中心、俱乐部、群聊天、游戏 DVR,等等。Developers gain access to Xbox Live features that can organically grow their game’s audience, including Xbox Live presence, Leaderboards, Cloud Saves, Game Hubs, Clubs, Party Chat, Game DVR, and more.

备注

如果你要开发支持 Xbox Live 的作品,则可以在若干选项中选择。If you would like to develop Xbox Live enabled titles, there are several options are available to you. 有关各种计划的信息,请参阅开发人员计划概述For info about the various programs, see Developer program overview.

Xbox Live 概述Xbox Live overview Xbox Live 开发人员指南Xbox Live developer guide
了解可根据计划使用哪些功能Understand which features are available depending on program 开发人员计划概述:功能表Developer program overview: Feature table
用于开发 Xbox Live 游戏的有用资源的链接Links to useful resources for developing Xbox Live games Xbox Live 资源Xbox Live resources
了解如何从 Xbox Live 服务获取信息Learn how to get info from Xbox Live services Xbox Live Api 简介Introduction to Xbox Live APIs

适合 Xbox Live 创意者计划中的开发人员For developers in the Xbox Live Creators Program

概述Overview Xbox Live 创建者计划入门Get started with the Xbox Live Creators Program
将 Xbox Live 添加到游戏Add Xbox Live to your game 集成 Xbox Live 创建者计划的循序渐进指南Step by step guide to integrate Xbox Live Creators Program
将 Xbox Live 添加到使用 Unity 创建的 UWP 游戏Add Xbox Live to your UWP game created using Unity 开始使用 Unity 游戏引擎开发 Xbox Live 创建者计划标题Get started developing an Xbox Live Creators Program title with the Unity game engine
设置你的开发沙盒Set up your development sandbox Xbox Live 沙箱简介Xbox Live sandboxes introduction
设置测试帐户Set up accounts for testing 在测试环境中授权 Xbox Live 帐户Authorize Xbox Live accounts in your test environment
Xbox Live 创意者计划示例Samples for Xbox Live Creators Program 创意者计划开发人员的代码示例Code samples for Creators Program developers
了解如何将跨平台的 Xbox Live 体验集成到 UWP 游戏中(视频)Learn how to integrate cross-platform Xbox Live experiences in UWP games (video) Xbox Live 创意者计划Xbox Live Creators Program

适用于 ID@Xbox 计划中托管的合作伙伴和开发人员For managed partners and developers in the ID@Xbox program

概述Overview 作为托管合作伙伴或 ID 开发人员开始使用 Xbox LiveGet started with Xbox Live as a managed partner or an ID developer
将 Xbox Live 添加到游戏Add Xbox Live to your game 集成托管合作伙伴和 ID 成员的 Xbox Live 的循序渐进指南Step by step guide to integrate Xbox Live for managed partners and ID members
将 Xbox Live 添加到使用 Unity 创建的 UWP 游戏Add Xbox Live to your UWP game created using Unity 为 UWP 添加 Xbox Live 支持,并将 IL2CPP 脚本后端用于 ID 和托管合作伙伴Add Xbox Live support to Unity for UWP with IL2CPP scripting backend for ID and managed partners
设置你的开发沙盒Set up your development sandbox 高级 Xbox Live 沙箱Advanced Xbox Live sandboxes
使用 Xbox Live 的游戏的要求 (GDN)Requirements for games that use Xbox Live (GDN) Windows 10 上 Xbox Live 的 xbox 要求Xbox Requirements for Xbox Live on Windows 10
示例Samples ID@Xbox 开发人员的代码示例Code samples for ID@Xbox developers
Xbox Live 游戏开发概述(视频)Overview of Xbox Live game development (video) 利用适用于 Windows 10 的 Xbox Live 进行开发Developing with Xbox Live for Windows 10
跨平台比赛(视频)Cross-platform matchmaking (video) Xbox Live 多玩家:引入跨平台婚介和游戏的服务Xbox Live Multiplayer: Introducing services for cross-platform matchmaking and gameplay
Fable Legends 中的跨设备玩法(视频)Cross-device gameplay in Fable Legends (video) Fable 图例:跨设备游戏与 Xbox LiveFable Legends: Cross-device Gameplay with Xbox Live
Xbox Live 统计数据和成就(视频)Xbox Live stats and achievements (video) 利用 Xbox Live 中基于云的用户统计信息和成就的最佳实践Best Practices for Leveraging Cloud-Based User Stats and Achievements in Xbox Live

其他资源Additional resources

游戏开发视频Game development videos 来自 GDC 和 build 等主要会议的视频Videos from major conferences like GDC and //build
独立的游戏开发(视频)Indie game development (video) 面向独立开发人员的新机会New Opportunities for Independent Developers
多核移动设备的注意事项(视频)Considerations for multi-core mobile devices (video) 多核移动设备中的持续游戏性能Sustained Gaming Performance in multi-core mobile devices
开发 Windows 10 桌面游戏(视频)Developing Windows 10 desktop games (video) 适用于 Windows 10 的 PC 游戏PC Games for Windows 10