Example #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            Rectangle sourceRectangle      = new Rectangle(0, 0, 96, 96);
            Rectangle destinationRectangle = new Rectangle((int)GlobalDefinitions.Position.X, (int)GlobalDefinitions.Position.Y, 96, 96);

            //use texture2dStorage to get the texture2d of the sprite
            spriteBatch.Draw(Texture2DStorage.GetMerchantRSpriteSheet(), destinationRectangle, sourceRectangle, Color.White);
        }