FlixelAnimationSources
View sourceclass
org.flixelgdx.animation.FlixelAnimationSources
public final class FlixelAnimationSources
Helpers to register clips from libGDX TextureAtlas and related sources.
Methods
addFromTextureAtlas(FlixelAnimationController, String, TextureAtlas, String[], float, boolean)
public static void addFromTextureAtlas(FlixelAnimationController controller, String name, TextureAtlas atlas, String[] regionNames, float frameDuration, boolean loop)
Adds an animation using named regions from an atlas (order preserved).
Parameters:
| Name | Description |
|---|---|
controller | The animation controller to add the animation to. |
name | The name of the animation. |
atlas | The texture atlas to get the frames from. |
regionNames | The names of the regions to get the frames from. |
frameDuration | Seconds per frame. |
loop | Whether to loop the animation. |