You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alex Land edited this page Aug 16, 2018
·
4 revisions
The GameController handles the main game loop. Activities should instantiate it when they are created, and use the registerAction method to add actions to the game loop.
Fields
TIMER_DELAY
The time, in milliseconds, before the first run of the timer.
TIMER_INTERVAL
The time (period), in milliseconds, between each run of the timer.
Methods
void registerAction(GameLoopAction action)
Add a GameLoopAction to the game loop. GameLoopAction is an interface that defines a single execute method where work is done.