---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/console/add-new-game.md
  - https://yandex.com/dev/games/doc/hi/console/add-new-game.md
  - https://yandex.com/dev/games/doc/ko/console/add-new-game.md
  - https://yandex.com/dev/games/doc/ru/console/add-new-game.md
  - https://yandex.com/dev/games/doc/tr/console/add-new-game.md
  - https://yandex.com/dev/games/doc/vi/console/add-new-game.md
  - https://yandex.com/dev/games/doc/zh/console/add-new-game.md
  - href: zh/console/add-new-game.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt

# 上传游戏

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->


#|
|| ![](../_images/icons/video.svg) | 视频教程。如何将游戏添加到游戏控制台？

<div class="cut-button">

{% cut "观看视频" %}

@[youtube](https://www.youtube.com/embed/g6dHMAqvi4s)

{% endcut %}

</div>

||
|#

您可以在 Yandex Games 平台上发布新游戏，也可以发布已在其他平台上发布的游戏。游戏可以使用任何[支持的语言](https://yandex.com/dev/games/doc/zh/concepts/languages-and-domains.md)。

{% cut "非俄语游戏的附加要求" %}

- 游戏的标题、描述和说明使用本地化语言编写；
- 图标、封面、截图和视频中的文字翻译为本地化语言。

{% endcut %}

{% note info %}

您可以查看 [Yandex Games 服务使用条款](https://yandex.com/legal/games_termsofuse/){.external}。

{% endnote %}


## 步骤 1. 熟悉要求 {#requirements-familiarize}

要发布游戏，游戏及其材料必须符合[要求](https://yandex.com/dev/games/doc/zh/concepts/requirements.md)。

<!-- source: zh/_includes/requirements/violated-requirements.md -->
{% cut "常见的发布拒绝原因" %}

#|
|| **游戏要求项** | **类别** | **违规** | **说明** ||
|| [1.6.1.8](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-6-1-8)、[1.6.2.7](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-6-2-7) | UI / 界面 | 交互时弹出上下文菜单 | 右键点击或长按时出现系统浏览器上下文菜单——必须在游戏区域内将其禁用。 ||
|| [1.6.1.6](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-6-1-6)、[1.6.2.5](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-6-2-5) | ^ | 系统播放器（桌面端和移动端） | 视频内容通过系统播放器而非内置游戏播放器播放——破坏了界面的完整性。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/6.md)。 ||
|| [4.7](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#4-7) | ^ | 展示广告时未暂停声音 | 播放广告期间，游戏音频持续播放。必须在广告期间暂停音频。 ||
|| [1.3](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-3) | ^ | 切换标签页时声音继续播放 | 离开标签页时游戏音乐或音效未停止。游戏必须响应页面失去焦点的事件。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/3.md)。 ||
|| [1.19.2](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-19-2) | SDK / Game Ready | Game Ready 运行不正常 | Game Ready 已接入，但 `ysdk.features.LoadingAPI.ready()` 方法调用有误或在游戏生命周期的错误时刻调用。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/19.md#gameready)。 ||
|| [2.14](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#2-14) | ^ | 未通过 SDK 实现语言自动检测 | 界面语言为手动设置，而非使用 `ysdk.environment.i18n.lang`。游戏必须自动适应用户的语言。[详情](https://yandex.com/dev/games/doc/zh/requirements/2/14.md)。 ||
|| [1.19.2](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-19-2) | ^ | 完全未使用 Game Ready | Game Ready 未集成，而目录发布要求必须集成。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/19.md#gameready)。 ||
|| [1.1](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-1) | ^ | SDK 未嵌入或嵌入有误 | SDK 脚本缺失、未从官方来源接入，或初始化时报错。[详情](https://yandex.com/dev/games/doc/zh/sdk/sdk-about.md#check)。 ||
|| [1.9](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-9) | 技术故障 | 进度未保存 | 结果、关卡或设置在会话之间未保存。需使用 `Player` 对象存储数据。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/9.md)。 ||
|| [1.14](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-14) | ^ | 游戏无法启动 | 加载界面卡住或游戏无法进入游玩状态。请检查控制台中的初始化错误。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/14.md)。 ||
|| [1.14](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-14) | ^ | 启动时或操作过程中出现错误 | 游戏启动或运行过程中，浏览器控制台出现影响功能的 JS 错误。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/14.md)。 ||
|| [1.15](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#1-15) | ^ | 游戏卡顿或掉帧 | 明显的卡顿或性能下降使游戏体验变差。[详情](https://yandex.com/dev/games/doc/zh/requirements/1/15.md)。 ||
|| [2.3](https://yandex.com/dev/games/doc/zh/concepts/requirements.md#2-3) | 与描述的一致性 | 游戏与声明类型不符 | 玩法与 **Draft** 标签中选择的[类别](https://yandex.com/dev/games/doc/zh/console/add-new-game/draft.md#field-category)相矛盾。类型和描述必须准确反映游戏内容。 ||
|#

{% endcut %}
<!-- endsource: zh/_includes/requirements/violated-requirements.md -->


## 步骤 2. 连接 SDK 或插件 {#sdk-plugin-connect}

{% note warning %}

连接 [SDK](https://yandex.com/dev/games/doc/zh/sdk.md) 是成功通过审核的必要条件。

{% endnote %}

SDK 帮助管理应用程序：例如，请求广告格式、保存玩家进度、进行应用内购买等等。

选择合适的 SDK 连接方式：
- 通过[游戏代码](https://yandex.com/dev/games/doc/zh/sdk/sdk-about.md)；
- 使用游戏引擎的[插件](https://yandex.com/dev/games/doc/zh/sdk.md#official-plugins)。


## 步骤 3. 在控制台注册 {#console-registration}

要在 [Yandex Games 控制台](https://games.yandex.com/console){.external}中工作，需要开发者账户。如果您还没有账户，请参阅 [管理帐户](https://yandex.com/dev/games/doc/zh/console/manage-account.md) 部分了解创建账户的详细说明。

创建账户后，您将能够在目录中发布您的游戏。


## 步骤 4. 创建并填写草稿 {#step-create-and-fill-draft}

{% note info %}

为每个新游戏创建具有唯一 ID 的单独草稿。不要将游戏上传到之前已发布其他游戏的草稿中。

禁止从一个账户删除游戏草稿并将相同的游戏上传到另一个账户。如果您想更改开发者账户，请联系[支持聊天](https://yandex.com/chat/#/user/a4fa5c06-75db-9b38-6eea-b1673785f7d5){.external}。

{% endnote %}

1. 要创建草稿，请在控制台右上角点击 **Add app**。
1. 填写 [Draft](https://yandex.com/dev/games/doc/zh/console/add-new-game/draft.md) 选项卡上的字段。

{% note tip %}

要从您的游戏中获利，请连接[变现](https://yandex.com/dev/games/doc/zh/services/about-monetization.md)。

{% endnote %}


## 步骤 5. 检查允许的主机 {#step-check-host}

确保游戏符合 [Content Security Policy](https://developer.mozilla.org/ru/docs/Web/HTTP/CSP){.external}。有关 CSP 和允许的主机的详细信息，请参阅文章[主机访问新规则和 Content Security Policy](https://yandex.ru/blog/gamesfordevelopers/content-security-policy-i-novye-pravila-dostupa-k-khostam){.external}。

如果您的游戏需要特定的外部主机（例如，游戏中有可加载的内容），请转到 **Settings** 选项卡并指定主机及其使用原因。我们将审核您的申请。

### 主机的附加要求 {#additional-requirements}

指定主机时，请考虑以下限制：

- **地址格式**：主机地址字段中不能指定路径（`https://host.example.com/path`）、冒号后的端口或 IP 地址。
- **协议**：无需指定主机协议，默认使用 `https` 和 `wss` 协议。不允许使用不安全的 `http` 或 `ws` 协议的主机。
- **数据量**：如果几乎所有游戏数据都从主机加载，则不会批准该主机。在这种情况下，将数据放在存档中或通过 [iframe](https://yandex.com/dev/games/doc/zh/console/add-new-game/draft.md#field-archive) 链接，但 `iframe` 也需要单独批准。

{% note alert %}

要批准主机，游戏必须与用户透明地通信并处理可能的主机连接错误。例如，向玩家显示信息性消息：说明出了什么问题，并建议后续操作（重试按钮、重新加载页面或其他解决方案）。

{% endnote %}


## 步骤 6. 配置分发国家 {#step-distribution-countries}

默认情况下，游戏对所有国家的用户显示。如果您想限制游戏的可用性：
1. 转到 **Countries and regions** 选项卡。
1. 点击相应的地区，将展开国家列表。
1. 取消选中您想限制游戏分发的国家。
1. 点击 **Save**。


## 步骤 7. 提交游戏进行审核 {#step-moderation-game}

{% note tip %}

如果您不想立即提交游戏进行审核，可以保存游戏草稿（它将以 **Created** 状态保存），稍后再返回编辑字段。

我们建议在提交游戏进行审核之前自行[测试游戏](https://yandex.com/dev/games/doc/zh/console/test-game.md)。

{% endnote %}

点击 **Submit for moderation** 按钮。游戏将被上传到Yandex服务器，其状态将更改为 **Waiting for moderation**。

{% note warning %}

一次只能进行一种审核：草稿、[创意A/B测试](https://yandex.com/dev/games/doc/zh/concepts/ab-test.md#submit-for-moderation)或[版本A/B测试](https://yandex.com/dev/games/doc/zh/console/ab-builds.md#moderation)。在审核草稿时，其他类型的审核将不可用。

{% endnote %}

<!-- source: zh/_includes/console/moderation.md -->
游戏将接受[要求](https://yandex.com/dev/games/doc/zh/concepts/requirements.md)合规性审核。通常[审核](https://yandex.com/dev/games/doc/zh/concepts/moderation.md)需要3−5个工作日。
<!-- endsource: zh/_includes/console/moderation.md -->

您将在控制台中看到审核结果：

- 如果审核通过游戏，其状态将更改为：

  - **Published**：游戏将自动发布。
  - **Verified**，如果选择了[Postpone publication](https://yandex.com/dev/games/doc/zh/console/add-new-game/draft.md#field-delay)选项。**Publish** 按钮将出现在 **Draft** 标签页上。

- 如果游戏未获批准，草稿状态将更改为 **Rejected**。将向与Yandex ID关联的电子邮件发送包含拒绝原因的通知。进行必要的更改并重新提交游戏进行审核。

草稿状态更改为 **Published** 后，游戏将出现在[Yandex Games](https://yandex.com/games/)目录中。

{% note info %}

[控制台](https://games.yandex.com/console){.external}中的游戏状态仅在重新加载页面后更新。

{% endnote %}


## 步骤 8. 改进游戏 {#step-improve-game}

游戏发布后，您可以：
- [推广游戏](https://yandex.com/dev/games/doc/zh/concepts/promotion.md)。
- [分析](https://yandex.com/dev/games/doc/zh/concepts/analytics.md)指标。
- 对游戏参数或源代码进行[任何更改](https://yandex.com/dev/games/doc/zh/console/update-game.md)。编辑后，游戏必须重新通过审核。
- 进行 [A/B 测试](https://yandex.com/dev/games/doc/zh/console/ab-builds.md)以验证您的假设。
- 连接[排行榜](https://yandex.com/dev/games/doc/zh/concepts/leaderboards.md)。
- 回复玩家[评论](https://yandex.com/dev/games/doc/zh/console/reviews.md)。


## 常见问题 {#faq}

{% cut "**游戏在 Yandex 服务器上存储多长时间？**" %}

**Draft** 选项卡上的所有材料都无限期存储在 Yandex 服务器上。但是，[完全删除](https://yandex.com/dev/games/doc/zh/console/delete-restore.md#full-removal)游戏草稿时，它们将被永久删除。之后无法恢复游戏。

{% endcut %}


{% cut "**可以恢复之前删除的游戏吗？**" %}

可以，如果游戏草稿未被删除。有关详细信息，请参阅 [恢复](https://yandex.com/dev/games/doc/zh/console/delete-restore.md#restore) 部分。

{% endcut %}


{% cut "**可以添加带有服务器端的游戏吗？**" %}

可以。例如，使用[服务器端](https://yandex.com/dev/games/doc/zh/sdk/sdk-about.md#use)可以：

- 保存[玩家数据](https://yandex.com/dev/games/doc/zh/sdk/sdk-player.md)；
- 设置[防作弊保护](https://yandex.com/dev/games/doc/zh/sdk/sdk-server-time.md)；
- 向游戏添加[应用内购买](https://yandex.com/dev/games/doc/zh/sdk/sdk-purchases.md)。

{% endcut %}


{% cut "**如何使用我的服务器通过 iframe 添加游戏？**" %}

<!-- source: zh/_includes/console/iframe.md -->
为此，请写信至[支持聊天](https://yandex.com/chat/#/user/a4fa5c06-75db-9b38-6eea-b1673785f7d5){.external}。在您的请求中，请指明游戏名称、开发者账户、`https` 格式的游戏链接，以及您为什么想使用 `iframe` 而不是通过存档添加游戏的理由。
<!-- endsource: zh/_includes/console/iframe.md -->

{% endcut %}


{% cut "**可以添加仅通过 Flash Player 运行的游戏吗？**" %}

不可以。

但是，Yandex Games 团队正在不断改进服务，并计划实现此功能。

{% endcut %}


{% cut "**Yandex Games 平台支持 WebGL 技术吗？**" %}

支持。但是，运行游戏的浏览器必须启用 WebGL 库（在大多数浏览器中，此选项称为**使用硬件加速**）。

如果您有已通过审核的游戏，可以在 Yandex Browser 中测试 WebGL 技术。在这种情况下，在控制台的游戏列表中找到游戏页面的链接并[测试它](https://yandex.com/dev/games/doc/zh/console/test-game.md)。

{% endcut %}


{% cut "**游戏中需要使用 Service Worker 吗？**" %}

不需要，使用 Service Worker 不是强制性的。关于 Service Worker 正确工作的游戏要求第 1.6.4 条已于 2022 年 12 月从游戏要求列表中删除。

{% endcut %}


{% cut "**为什么游戏草稿中出现"拒绝访问"错误？**" %}

该错误可能是由于授权丢失（例如，如果您在另一个浏览器选项卡中登录了另一个账户）或链接不正确而发生的。

解决方案：

- 更改账户：

  1. 退出开发者账户。
  2. 重新登录 Yandex Games 控制台。
  3. 刷新页面。
  4. 在左上角多次点击控制台徽标或 **Games** 部分。
  5. 从列表中选择所需的游戏。

- 确保 VPN 已禁用，并尝试在隐身模式下登录控制台。
- 联系[支持](https://yandex.com/chat/#/user/a4fa5c06-75db-9b38-6eea-b1673785f7d5){.external}。

{% endcut %}
