Example #1
0
        public void Draw(SpriteBatch spriteBatch, Vector2 Position)
        {
            Texture = Texture2DStorage.GetBombedDoorLeftSpriteSheet();
            Nullable <Rectangle> sourceRectangle = new Rectangle(0, 0, Texture.Width, Texture.Height);

            destinationRectangle = new Rectangle(400, 100, Texture.Width / 2, Texture.Height / 2);
            spriteBatch.Draw(Texture, destinationRectangle, sourceRectangle, Color.White);
        }