Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FXGLIntroScene

[21:7] extends: IntroScene

Wraps FXGL's FXGLIntroScene (com.almasb.fxgl.app.scene.FXGLIntroScene), the engine's default intro animation (animated FXGL and JavaFX logos). Built automatically by the default SceneFactory; construct one directly only when returning it from a custom SceneFactory.newIntro override. Construction reads /assets/textures/intro/fxgl_logo.png and /assets/textures/intro/javafx_logo.png from the asset loader, so this can only be instantiated inside a running FXGL engine.

Methods

  • FXGLIntroScene (bool Construct = true)

    Creates a new FXGLIntroScene. Pass false to construct an empty wrapper for adopt; the default (true) instantiates the engine class.

    • @p Construct is true to instantiate immediately, false for an empty wrapper.
  • adopt (object Ajo)

    Wraps an existing FXGLIntroScene AussomJavaObject.

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