clik-engine API
    Preparing search index...

    Interface ParallaxLayerConfig

    interface ParallaxLayerConfig {
        autoTile?: boolean;
        gameObject: GameObject & { setScrollFactor(x: number, y?: number): void };
        name: string;
        scrollFactorX?: number;
        scrollFactorY?: number;
    }
    Index

    Properties

    autoTile?: boolean

    Auto-tile: if true, repeats the object to fill viewport width + buffer

    gameObject: GameObject & { setScrollFactor(x: number, y?: number): void }

    The game object(s) to scroll. Can be a tilemap layer, image, or sprite.

    name: string

    Layer name (for management)

    scrollFactorX?: number

    Scroll rate relative to camera (0 = fixed, 1 = normal, >1 = foreground)

    scrollFactorY?: number