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.
The texture atlas key
Default frame rate for all detected animations
Default repeat (-1 = loop)
Get the current animation key playing on a sprite
Check if a sprite is playing a specific animation
Optionalkey: stringPlay an animation on a sprite. Returns a promise that resolves when the animation completes (for non-looping animations).
Play animation and call a function on a specific frame
Register multiple animations from a definition set. Typically called once in scene create().
Declarative animation registration and playback helper. Wraps Phaser's animation system with a simpler API.