Interface with HTML5 to implement looping functionality
Found in Chapter 4, page 112 of the textbook
Example: 4.1 Game Loop- Source:
Methods
(inner) cleanUp()
Stop the game loop and unload the current scene
- Source:
(inner) getUpdateIntervalInSeconds() → {float}
Returns how many seconds pass between updates, normally a small fraction
- Source:
Returns:
kSPU - seconds per update
- Type
- float
(inner) stop()
Stop the game loop
- Source: