Exemplo n.º 1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(
                PaddleTexture,
                GetPosition(),
                null,
                Color.White,
                RotationDegrees * (float)Math.PI / 180,
                new Vector2(_paddleWidth / 2f, _paddleHeight / 2f),
                1,
                SpriteEffects.None,
                1);

            if (_boost1.Status())
            {
                _boost1.Draw(spriteBatch);
            }

            if (_boost2.Status())
            {
                _boost2.Draw(spriteBatch);
            }
        }