public Sprite(CanvasBitmap image, int imageResolution, PointInt absolutePosition) { AbsolutePosition = absolutePosition; _spriteSheet = new SpriteSheet(image, imageResolution); _currentAnimationState = SPRITE_ANIMATION.IDLE_DOWN; _currentAnimation = SpriteAnimationDefinitions.Copy(_currentAnimationState); }
public void SetAnimation(SPRITE_ANIMATION animation) { _currentAnimationState = animation; _currentAnimation = SpriteAnimationDefinitions.Copy(_currentAnimationState); }