Game

fun <SceneType : Scene> Game(context: Context, firstScene: SceneType? = null)

Parameters

context

the context instance

firstScene

the initial scene the was be used immediately by the context.

SceneType

the common base interface or class of all scenes.