Example #1
0
        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();
        }
Example #2
0
 public Animation(SpriteStrip pStrip, int pStartIndex, int pEndIndex) : this(pStrip, pStartIndex, pEndIndex, 0)
 {
 }