Keeps track of current frame rate.
Initialization function defined by user.
Last time that update was called.
Keeps track of whether the loop is running. Use running method to set. Defaults to true if update is defined in constructor. Otherwise false.
The target time between update being called. Milliseconds.
Update function defined by user.
Internal method that runs update and starts the next loop.
Internal method to run init and start the update loop.
Internal method that deals with timing the loop method.
Sets the loopRunning variable and restarts loop if it was stopped.
Used to set update function if not set in the constructor.
Generated using TypeDoc