public Animation(SpriteStrip pStrip, int pStartIndex, int pEndIndex, float pFrameDuration) { Bitmap = pStrip.Bitmap; _frameSize = pStrip.FrameSize; _start = pStartIndex; _end = pEndIndex; _frameDuration = pFrameDuration; _columns = (int)(Bitmap.Width / _frameSize.Width); _index = pStartIndex; SetFrame(); }
public Animation(SpriteStrip pStrip, int pStartIndex, int pEndIndex) : this(pStrip, pStartIndex, pEndIndex, 0) { }