Game start
The ysdk.features.loading_api.ready
method displays the moment when the game has loaded
all resources and is ready to interact with the user.
function init(self)
ysdk.features.loading_api.ready()
end
Yandex Games work worldwide, so collecting statistics is important for improving the speed of loading and the availability of games. For example, based on this data, we decide where to deploy new data centers.
This method will also allow us to add new functional features in the future to make the most of the game loading time, for example, to add the display of:
- an additional ad unit that will bring the developer additional revenue;
- a loading screen common to all games, screenshots of the game, or reviews, which will increase the attractiveness of the game.
When using the method, make sure that at the time of the call in the game:
- all elements are ready to interact with the player;
- there are no loading screens.