Scene

abstract class Scene(val context: Context) : Disposable

A base scene. Does nothing on its own and will need to be managed by either a ContextListener or Game.

Author

Colton Daily

See also

Constructors

Link copied to clipboard
fun Scene(context: Context)

Functions

Link copied to clipboard
override fun dispose()

open fun Context.dispose()

Dispose of any assets here.

Link copied to clipboard
open suspend fun Context.hide()

Invoked when this scene is hidden from view.

Link copied to clipboard
open fun Context.render(dt: Duration)

Invoked on every render frame.

Link copied to clipboard
open fun Context.resize(width: Int, height: Int)

Invoked when a resize event occurs.

Link copied to clipboard
open suspend fun Context.show()

Invoked when a Scene is first shown.

Properties

Link copied to clipboard