clik-engine API
    Preparing search index...

    Interface AnimatedTileDef

    Tiled animated tile support. Updates tile frames on a timer.

    Usage:

    const animated = new AnimatedTiles();
    animated.register(42, [42, 43, 44, 45], 150); // tile 42 cycles through frames at 150ms each
    // In update:
    animated.update(delta); // returns tiles that need visual update
    interface AnimatedTileDef {
        baseTile: number;
        frameDuration: number;
        frames: number[];
    }
    Index

    Properties

    baseTile: number

    Base tile index

    frameDuration: number

    Duration per frame in ms

    frames: number[]

    Frame sequence of tile indices