Installation

Installing the Plugin from Cocos Store

You can install the plugin directly from the Cocos Store.

Installing the Plugin from the Repository

After downloading the plugin, open your project in Cocos Creator or create a new one. In the top panel, hover over Extension and select Extension Manager.

Cocos Creator screenshot. In the top-left corner, there is a menu with several sections: "File", "Edit", "Node", "Project", "Panel", "Extension", "Developer", "Help", "Yandex.Games SDK", and others. The section "Extension" is selected, and in the drop-down menu the pointer is hovered over the "Extension Manager" option.

Next, hover the pointer over Import Extension File (.zip) and in the menu that appears, select the plugin you downloaded earlier.

Cocos Creator screenshot. In the pop-up window "Extension Manager - ", in the top-left corner there is a menu: a drop-down list with the "Cocos Official" option and the "Installed" status selected, a magnifying glass icon, a "Download" icon (an arrow pointing down and to the right, into a square frame), and a reload icon. The pointer is hovered over the "Download" icon, with the tooltip "Import Extension File(.zip)" appearing below it.

Template Setup

Most likely, after installing the plugin, you will see messages similar to those below. This happens because Yandex Games requires the Yandex Games SDK to be imported directly into files such as index.html, which appear after compilation.

Screenshot of warnings in the Cocos Creator console: "[yandex-games-sdk] Failed to find build-templates/web-desktop template! [yandex-games-sdk] Failed to find build-templates/web-mobile template! [yandex-games-sdk] Failed to find preview-template template!"

To resolve this issue, visit the new Yandex Games SDK section and select the template generation option so the plugin generates the required templates on its own. You can also write them manually.

If the templates are compiled successfully, the plugin should output a message similar to the one below to the console. This means everything is in order, and you can get started.

Screenshot of messages in the Cocos Creator console: "Register native engine in D:rogrammsocos-dashbo..., [yandex-games-sdk] Templates looks fine! [Scene] [Physics] [Bullett]' Using asmis Bullet libs".

For more detailed information: build template setup, Cocos Creator web view setup.


Repository