Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: StartupScene

[22:7] extends: FXGLScene

Wraps FXGL's abstract StartupScene (com.almasb.fxgl.app.scene.StartupScene), the FXGLScene shown the instant the game window opens, before any FXGL services are ready. Switched out as soon as the main loop begins, so subclasses should avoid animation -- the scene is for snap-fast first paint only. The class extends FXGLScene with an (appWidth, appHeight) constructor. Direct construction from Aussom is not supported because StartupScene itself is abstract. Pick FXGLStartupScene for the built-in version, or return a custom subclass from a SceneFactory.newStartup override.

Methods

  • StartupScene ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing StartupScene AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a StartupScene.
    • @r A new wrapper.