Example #1
0
        private void AddFairy()
        {
            var yPosition = 0;

            Animation fairyAnimation = new Animation();

            fairyAnimation.Initialize(_fairyTexture, Vector2.Zero, 0, 0, 0, 0, Color.White, 1f, true);

            Vector2 position = new Vector2(_player.Position.X, yPosition);

            Fairy fairy = new Fairy();

            fairy.Initialize(fairyAnimation, position);

            _faries.Add(fairy);
        }