Table of Contents

Class SpriteAnimation

Namespace
Axolotl2D.Animation
Assembly
Axolotl2D.dll

A timed sprite sequence.

public sealed class SpriteAnimation
Inheritance
SpriteAnimation
Inherited Members

Constructors

SpriteAnimation(IEnumerable<Sprite>, float, bool)

public SpriteAnimation(IEnumerable<Sprite> frames, float framesPerSecond, bool loop = true)

Parameters

frames IEnumerable<Sprite>
framesPerSecond float
loop bool

Properties

Frames

public IReadOnlyList<Sprite> Frames { get; }

Property Value

IReadOnlyList<Sprite>

FramesPerSecond

public float FramesPerSecond { get; }

Property Value

float

Loop

public bool Loop { get; }

Property Value

bool