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."],[[["\u003cp\u003e\u003ccode\u003eready()\u003c/code\u003e signals that the game has finished loading and is ready for user interaction, such as at a main menu or the start of gameplay.\u003c/p\u003e\n"],["\u003cp\u003eThis method must be called when the displayed content is interactive, not during loading screens or splash screens.\u003c/p\u003e\n"],["\u003cp\u003eGames should ensure the first level or main menu is loaded before calling \u003ccode\u003eready()\u003c/code\u003e, indicating readiness for immediate gameplay or menu navigation.\u003c/p\u003e\n"]]],[],null,["# Game ready method\n\n ready(): void;\n\nThe game has finished loading and is ready to play.\n\nYour game should call `ready` as soon as its main menu (not its loading screen)\nis both displayed and interactive. You may use this call to hide loading screens\nor indicators. At this point your game, or at least the first level, should be\nloaded.\n\nRequirements\n------------\n\n- 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.\n- 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."]]