file: Viewport.aus

class: Viewport

[18:7] extends: FxObj

Wraps FXGL's Viewport (com.almasb.fxgl.app.scene.Viewport), the camera frame for a GameScene. The viewport controls which part of the game world is rendered: panning, following an entity, zoom, rotation, screen-shake, and fade / flash overlays all live here. Aussom users hold a Viewport wrapper via adopt after obtaining one from the running GameScene (typically fxgl.getGameScene().getViewport).

Methods