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

    Class ParallaxBackground

    Container for all parallax layers that manages global parallax behavior and coordinates with the Camera system.

    Inspired by Godot's ParallaxBackground node.

    const parallax = new ParallaxBackground();
    const skyLayer = new TilingParallaxLayer({
    texture: skyTexture,
    scrollScale: new PIXI.Point(0.2, 0.2)
    });
    parallax.addLayer(skyLayer);
    scene.addChild(parallax);

    Hierarchy

    • Container
      • ParallaxBackground
    Index

    Constructors

    Properties

    autoscroll: Point = ...
    camera: Camera = null
    moxiEntity: MoxiEntity<Container<ContainerChild>>

    The MoxiEntity instance managing logic for this container

    scrollBaseScale: Point = ...
    scrollIgnoreCameraZoom: boolean = false
    scrollOffset: Point = ...

    Methods