Testing

Games can be launched on the platform from a local server, simplifying the development and testing of functionality related to the SDK.

Please note that you will need to add a draft of the game using the Yandex Games console.

Build Configuration

First of all, you need to configure the project build in the ProjectBuild panel.

In the window that opens, click New Build Task to create a new build configuration.

Set up the parameters. It is usually recommended to enable the Source Maps and Debug options to facilitate debugging.

After completing the setup, click the Build button to build the project.

Then go to the folder where your project is located. You will see a folder structure similar to this:

Project name/
└── build/
    └── debug/
        ├── ...
        └── index.html

Setting Up a Local Server

For detailed information, see the section Launch from local server.

Testing

When the local server is running, you can test your game using this link, where XXXXXX is your draft code:

https://yandex.ru/games/app/XXXXXX?draft=true&game_url=https://localhost:6577

If you want to test the new version, simply rebuild the project in the Build panel without changing any parameters, and refresh the page after the build is complete.


Repository