Exemplo n.º 1
0
        private void AnimateSprites(Graphics g, SpriteSet spriteSet, long timediffms)
        {
            var   sprites = spriteSet.GetSprites(this.lookingDirection == LookingDirection.Left);
            long  index   = (timediffms / spriteSet.animateDelayMs) % sprites.Count;
            Image image   = sprites[(int)index];

            g.DrawImageUnscaled(image, location);
        }