SpriteAnimationData class
Constructors
-
SpriteAnimationData(List<SpriteAnimationFrameData> frames, {bool loop = true})
-
Creates a SpriteAnimationData from the given frames and loop parameters
-
SpriteAnimationData.sequenced({required int amount, required double stepTime, required Vector2 textureSize, int? amountPerRow, Vector2? texturePosition, bool loop = true})
-
Works just like SpriteAnimationData.variable but uses the same
stepTime
for all frames
factory
-
SpriteAnimationData.variable({required int amount, required List<double> stepTimes, required Vector2 textureSize, int? amountPerRow, Vector2? texturePosition, bool loop = true})
-
Takes some parameters and automatically calculate and create the frames for the sprite animation data
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited