mwg API
    Preparing search index...

    Interface LiquidLayerOptions

    interface LiquidLayerOptions {
        height: number;
        isLiquid: (x: number, y: number) => boolean;
        rippleDuration?: number;
        rippleTexture?: Texture<TextureSource<any>>;
        speed?: number;
        texture: Texture;
        tileSize?: number;
        width: number;
    }
    Index
    height: number
    isLiquid: (x: number, y: number) => boolean

    which cells hold liquid

    rippleDuration?: number

    seconds a ripple takes to grow and fade; default 0.5

    rippleTexture?: Texture<TextureSource<any>>

    the sprite an expanding ripple draws; without one ripple does nothing

    speed?: number

    texture pixels scrolled per second, downwards when positive; default 5

    texture: Texture

    the repeating liquid surface texture

    tileSize?: number

    tile size in world units; default 16

    width: number

    map size in tiles