GameLoop

Control the logic of the game.

For the four state of the game, GameLoop class has different way of processing, and if the state is not one of them, nothing will ve invoked.

If you want to start this thread, please use the method GameLoop.start.

Also, you can use addTask method to add tasks, which will be invoked after the main logic is executed.

Author

KKoishi_

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun run()
Link copied to clipboard
fun update()

upgrade the game states.