Example #1
0
        public Sprite(CanvasBitmap image, int imageResolution, PointInt absolutePosition)
        {
            AbsolutePosition = absolutePosition;
            _spriteSheet     = new SpriteSheet(image, imageResolution);

            _currentAnimationState = SPRITE_ANIMATION.IDLE_DOWN;
            _currentAnimation      = SpriteAnimationDefinitions.Copy(_currentAnimationState);
        }
Example #2
0
 public void SetAnimation(SPRITE_ANIMATION animation)
 {
     _currentAnimationState = animation;
     _currentAnimation      = SpriteAnimationDefinitions.Copy(_currentAnimationState);
 }