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

    Class ParallaxBackgroundLogic

    Logic component that updates the parallax background based on camera movement and autoscroll.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    active: boolean = true

    Set false to skip update() calls.

    name: string = 'ParallaxBackgroundLogic'

    Identifier for getLogic(). Defaults to class name.

    Methods

    • Called once when scene.init() is invoked. Override for setup.

      Parameters

      • Optionalentity: ParallaxBackground

        The PIXI object this logic is attached to

      • Optionalrenderer: Renderer<HTMLCanvasElement>

        The PIXI renderer

      • ...args: any[]

        Additional arguments passed to scene.init()

      Returns void