file: GameController.aus

class: GameController

[18:7] extends: FxObj

Wraps FXGL's GameController interface (com.almasb.fxgl.app.GameController), the engine-wide lifecycle controller that drives scene transitions, save / load, pause / resume, and exit. Reached at runtime via fxgl.getGameController; obtain a wrapper via adopt. Only one GameController exists per running engine. The methods here mostly route through to FXGL's main thread, so call them from game code that runs on the JavaFX UI thread.

Methods