---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk.md
  - https://yandex.com/dev/games/doc/ru/sdk.md
  - https://yandex.com/dev/games/doc/tr/sdk.md
  - https://yandex.com/dev/games/doc/zh/sdk.md
  - href: zh/sdk.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

# SDK

<!-- 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 -->

{% note warning %}

连接 SDK 是成功通过审核和发布游戏的必要条件。

{% endnote %}

Yandex Games SDK 是一个库,允许第三方开发者将他们的游戏连接到 Yandex Games 平台。该库有助于:
- 根据[平台要求](https://yandex.com/dev/games/doc/zh/concepts/requirements.md)配置游戏;
- 使用平台功能,例如:
    - 在游戏中添加[广告](https://yandex.com/dev/games/doc/zh/console/adv-monetization.md)和[应用内购买](https://yandex.com/dev/games/doc/zh/console/purchases.md);
    - [无需更新构建版本](https://yandex.com/dev/games/doc/zh/config.md)即可管理游戏参数;
    - 保存[玩家进度](https://yandex.com/dev/games/doc/zh/sdk/sdk-player.md);
    - 连接[排行榜](https://yandex.com/dev/games/doc/zh/concepts/leaderboards.md)。
- 将游戏中的时间与[服务器时间](https://yandex.com/dev/games/doc/zh/sdk/sdk-server-time.md)同步,并使用它来添加奖励和活动,以及防止作弊;
- 配置游戏自动切换到[全屏模式](https://yandex.com/dev/games/doc/zh/sdk/sdk-params.md#screen.fullscreen);
- 建议用户[评价游戏](https://yandex.com/dev/games/doc/zh/sdk/sdk-review.md)或在[桌面上安装游戏图标](https://yandex.com/dev/games/doc/zh/sdk/sdk-shortcut.md)。

可以直接[通过游戏代码](https://yandex.com/dev/games/doc/zh/sdk/sdk-about.md)连接 SDK。

## 游戏引擎插件 {#official-plugins}

根据使用的游戏引擎选择合适的插件来连接 SDK。

<div class="container-desktop striped-none">

#|
||::{align="center"} [![](_images/engeens-logo/unity.svg)](https://yandex.com/dev/games/doc/zh/sdk/unity/install.md)

[Unity](https://yandex.com/dev/games/doc/zh/sdk/unity/install.md) |::{align="center"} [![](_images/engeens-logo/cocos.svg)](https://yandex.com/dev/games/doc/zh/sdk/cocos/install.md)

[Cocos Creator](https://yandex.com/dev/games/doc/zh/sdk/cocos/install.md) |::{align="center"} [![](_images/engeens-logo/construct-3.svg)](https://yandex.com/dev/games/doc/zh/sdk/construct-3/about.md)

[Construct 3](https://yandex.com/dev/games/doc/zh/sdk/construct-3/about.md) |::{align="center"} [![](_images/engeens-logo/defold.svg)](https://yandex.com/dev/games/doc/zh/sdk/defold/install.md)

[Defold](https://yandex.com/dev/games/doc/zh/sdk/defold/install.md) |::{align="center"} [![](_images/engeens-logo/typescript.svg)](https://yandex.com/dev/games/doc/zh/sdk/typescript.md)

[Typescript](https://yandex.com/dev/games/doc/zh/sdk/typescript.md) ||
|#

</div>

<div class="container-mobile striped-none">

#|
||::{align="center"} [![](_images/engeens-logo/unity.svg)](https://yandex.com/dev/games/doc/zh/sdk/unity/install.md)

[Unity](https://yandex.com/dev/games/doc/zh/sdk/unity/install.md) | > |::{align="center"} [![](_images/engeens-logo/cocos.svg)](https://yandex.com/dev/games/doc/zh/sdk/cocos/install.md)

[Cocos Creator](https://yandex.com/dev/games/doc/zh/sdk/cocos/install.md) | > |::{align="center"} [![](_images/engeens-logo/construct-3.svg)](https://yandex.com/dev/games/doc/zh/sdk/construct-3/about.md)

[Construct 3](https://yandex.com/dev/games/doc/zh/sdk/construct-3/about.md) | > ||

||::{align="center"} [![](_images/engeens-logo/defold.svg)](https://yandex.com/dev/games/doc/zh/sdk/defold/install.md)

[Defold](https://yandex.com/dev/games/doc/zh/sdk/defold/install.md) | > | > |::{align="center"} [![](_images/engeens-logo/typescript.svg)](https://yandex.com/dev/games/doc/zh/sdk/typescript.md)

[Typescript](https://yandex.com/dev/games/doc/zh/sdk/typescript.md) | > | > ||
|#

</div>

## 第三方游戏引擎插件 {#other-plugins}

{% note info %}

Yandex Games SDK 的方法及其集成方式对所有能够调用 JavaScript 并支持 HTML5 的引擎都是统一的。有关启用的更多信息，请参阅 [连接和使用](https://yandex.com/dev/games/doc/zh/sdk/sdk-about.md) 部分。

{% endnote %}

您也可以使用 Yandex Games 文档中未描述的插件。

<div class="striped-none">

#|
|| **Gamepush**

用于在 HTML5 上跨平台发布游戏的 SDK。

- [网站](https://gamepush.com/){.external}。
- 开发者联系方式:[Telegram](https://t.me/gs_community){.telegram}。 ||

|| **Playgama Bridge**

用于在 HTML5 上跨平台发布游戏的 SDK。

- [代码库](http://github.com/playgama/bridge){.external}。
- 开发者联系方式:[Telegram](https://t.me/playgama_bridge){.telegram}。 ||

|| **Defold**

- [代码库](https://github.com/indiesoftby/defold-yagames){.external}。
- 开发者联系方式:[Telegram](https://t.me/aglitchman){.telegram}。 ||
|#

</div>


---

<!-- source: zh/_includes/sdk-support.md -->
{% note info %}

技术支持团队将协助您将已完成的游戏发布到 Yandex 游戏平台。关于开发和测试方面的具体问题，其他开发人员将在[Discord 频道](https://discord.com/invite/wU4p3whr4T){.external}中进行回答。

{% endnote %}

如果您遇到 Yandex Games SDK 方面的问题或有其他问题想要咨询，请联系支持部门：

<!-- source: zh/_includes/button-chat.md -->
<a href="https://yandex.com/chat/#/user/a4fa5c06-75db-9b38-6eea-b1673785f7d5">
  <span class="button">写入聊天信息</span>
</a>
<!-- endsource: zh/_includes/button-chat.md -->
<!-- endsource: zh/_includes/sdk-support.md -->
