clik-engine API
    Preparing search index...

    Class AnimationHelper

    Declarative animation registration and playback helper. Wraps Phaser's animation system with a simpler API.

    Index

    Constructors

    Methods

    • Auto-detect and register animations from an atlas based on frame name prefixes. If atlas has frames: "idle_00", "idle_01", "run_00", "run_01" etc., this creates animations "idle" and "run" automatically.

      Parameters

      • atlasKey: string

        The texture atlas key

      • frameRate: number = 10

        Default frame rate for all detected animations

      • repeat: number = -1

        Default repeat (-1 = loop)

      Returns string[]