Example #1
0
        public override void Initialize()
        {
            _sprite = new ClothArmor(Game, new Vector2(15, 222));
            Game.Components.Add(_sprite);

            base.Initialize();
        }
 public PlayerSpriteAnimation(
     PlayerSprite sprite,
     AnimationType type,
     Direction direction,
     int spriteSheetRow,
     int framesLength,
     int frameDuration,
     bool flipHorizontally = false)
     : base(sprite.SpriteSheet, 
         spriteSheetRow, 
         sprite.PixelWidth, 
         sprite.PixelHeight, 
         framesLength, 
         frameDuration, 
         flipHorizontally)
 {
     Type = type;
     Direction = direction;
 }