@moxijs/core - v0.3.4
    Preparing search index...

    Interface LoadingSceneOptions

    Loading scene options.

    interface LoadingSceneOptions {
        animation?: LoadingAnimation;
        backgroundColor?: number;
        fallingSquaresOptions?: FallingSquaresOptions;
        text?: string;
        textStyle?: Partial<PIXI.TextStyle>;
    }
    Index

    Properties

    animation?: LoadingAnimation

    Custom loading animation plugin. If not provided, uses FallingSquaresAnimation.

    // Custom animation
    const options: LoadingSceneOptions = {
    animation: new MyCustomAnimation()
    };

    // Or customize the default
    const options: LoadingSceneOptions = {
    animation: new FallingSquaresAnimation({
    squareSize: 16,
    palette: [0xff0000, 0x00ff00]
    })
    };
    backgroundColor?: number

    Background color (default: 0x1a1a1a)

    fallingSquaresOptions?: FallingSquaresOptions

    Options for default FallingSquaresAnimation (ignored if custom animation provided)

    text?: string

    Loading text (default: 'LOADING...')

    textStyle?: Partial<PIXI.TextStyle>

    Text style overrides