Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: FXGLScene
Wraps FXGL's GameScene, the active scene during gameplay. Hosts the game world's entity views plus a separate UI root for HUD elements added through addUINode. Reached at runtime via fxgl.getGameScene (chunk 6); obtain a wrapper via adopt.
GameScene (Ajo = null)
Creates a GameScene wrapper. The default form is empty (used by adopt); the (Ajo) form wraps an existing GameScene from fxgl.getGameScene.
Ajo is an optional AussomJavaObject around a GameScene.adopt (object Ajo)
Wraps an existing GameScene AussomJavaObject.
Ajo is an AussomJavaObject around a GameScene.A new wrapper.addUINode (object NodeObj)
Adds a JavaFX Node to the UI overlay (in front of the game world). Use for HUD elements, score readouts, etc.
NodeObj is a wrapper exposing the node via .obj.this objectremoveUINode (object NodeObj)
Removes a node previously added via addUINode.
NodeObj is a wrapper exposing the node via .obj.A bool, true if removed.setUIMouseTransparent (bool Transparent)
Sets whether UI nodes ignore mouse events (pass-through).
Transparent is a bool.this objectclearUINodes ()
Clears every UI node added through addUINode.
this objectgetGameWorld ()
Returns the scene's GameWorld as an AussomJavaObject (typically reached via fxgl.getGameWorld instead).
An AussomJavaObject around the GameWorld.getPhysicsWorld ()
Returns the scene's PhysicsWorld as an AussomJavaObject.
An AussomJavaObject around the PhysicsWorld.getUINodes ()
Returns the unmodifiable list of UI nodes currently added to the scene.
An AussomJavaObject around an ObservableListclearGameViews ()
Drops every view registered on the game layer.
this objectgetCamera3D ()
Returns the 3D camera as an AussomJavaObject. Only useful when GameSettings.setIs3D(true) was used at launch.
An AussomJavaObject around the Camera3D.setMouseGrabbed (bool Grabbed)
Sets whether the mouse cursor is grabbed (locked and hidden in FPS-style games).
Grabbed is a bool.this objectisMouseGrabbed ()
Returns whether the mouse is currently grabbed.
A bool.setFPSCamera (bool Enabled)
Sets whether the 3D camera operates in FPS mouse-look mode.
Enabled is a bool.this objectisFPSCamera ()
Returns whether the 3D camera is in FPS mouse-look mode.
A bool.setSingleStep (bool Enabled)
Sets whether the game loop advances only on explicit step() calls.
Enabled is a bool.this objectisSingleStep ()
Returns whether single-step mode is enabled.
A bool.step (double Tpf)
Drives the game scene forward by tpf seconds when single-step mode is enabled.
Tpf is the elapsed time in seconds.this objectaddUINodes (list Nodes)
Adds multiple UI nodes in one call. Accepts an Aussom list of fx.Node wrappers or raw Node AJOs.
removeUINodes (list Nodes)
Removes multiple UI nodes in one call.
addUI (object UIObj)
Attaches a fxgl.UI wrapper (root + controller pair) to the scene.
removeUI (object UIObj)
Detaches a previously added UI from the scene.
addGameView (object GameViewAjo)
Adds a GameView (z-ordered renderable) to the scene.
removeGameView (object GameViewAjo)
Removes a GameView from the scene.
onEntityAdded (object EntityObj)
Lifecycle hook: called when an entity is added to the world.
onEntityRemoved (object EntityObj)
Lifecycle hook: called when an entity is removed from the world.
onEnteredFrom (object PrevSceneAjo)
Scene-transition hook: called when entering from PrevScene.
onExitingTo (object NextSceneAjo)
Scene-transition hook: called when exiting to NextScene.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.