Game start

The ysdk.features.LoadingAPI.ready method signals the moment when the game has loaded all resources and is ready for user interaction.

let ysdk;
function initGame(params) {
  YaGames
  .init(params)
  .then(_sdk => {
    ysdk = _sdk;

    ysdk.features.LoadingAPI?.ready(); // Informing the SDK that the game has loaded and is ready to play
  })
  .catch(console.error);
}

Yandex Games is a platform used all over the world, so collecting statistics is essential for improving games' loading speed and accessibility. Among other things, this data helps us choose new geographies for deploying our data centers.

This method also facilitates the introduction of new features to make the most of the game's loading times, such as adding:

  • Another ad unit for additional revenue.
  • A common splash screen for all games, screenshots, and reviews, which will increase the game's appeal.

When using this method, make sure that at the moment of the call in the game:

  • All elements are ready for player interaction.
  • There are no loading screens.

Note

Our support team can help publish finished games or WebApps on Yandex Games. If you have any questions about development or testing, ask them in the Discord channel.

If you are facing an issue or have a question regarding the use of Yandex Games SDK, please contact support:

Write to chat