Skip to content

Game Controller Reference

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.

Clone this wiki locally