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

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