Game ready method
Stay organized with collections
Save and categorize content based on your preferences.
ready(): void;
The game has finished loading and is ready to play.
Your game should call ready
as soon as its main menu (not its loading screen)
is both displayed and interactive. You may use this call to hide loading screens
or indicators. At this point your game, or at least the first level, should be
loaded.
Requirements
- Your game must call this method when your game is ready for user
interaction. This could be either a main menu or the core game content
itself.
- Your game must not call this method while there are still
non-interactable elements being displayed to the user, such as splash
screens or loading screens.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["`ready()` signals that the game has finished loading and is ready for user interaction, such as at a main menu or the start of gameplay."],["This method must be called when the displayed content is interactive, not during loading screens or splash screens."],["Games should ensure the first level or main menu is loaded before calling `ready()`, indicating readiness for immediate gameplay or menu navigation."]]],[]]