Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GameView

[14:7] extends: FxObj

Wraps FXGL's GameView (com.almasb.fxgl.app.scene.GameView), the small container that pairs a JavaFX Node with a z-index so the engine can layer it correctly inside GameScene's render stack. Pass a GameView to GameScene.addGameView / removeGameView; the z-property can be bound to drive ordering dynamically.

Methods

  • GameView (object NodeObj = null, int Z = 0)

    Creates a new GameView wrapping NodeObj at the given z-index.

    • @p NodeObj is a JavaFX Node wrapper or raw AJO.
    • @p Z is the z-index (higher draws on top).
  • adopt (object Ajo)

    Wraps an existing GameView AussomJavaObject.

  • getNode ()

    Returns the wrapped JavaFX Node AJO.

  • getZProperty ()

    Returns the SimpleIntegerProperty for the z-index.

  • getZ ()

    Returns the current z-index.

  • setZ (int V)

    Sets the z-index. Higher values draw on top.