Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch, GameUnit x, GameUnit y)
        {
            Rectangle destinationRect = new Rectangle(Units.GameToPixel(x), Units.GameToPixel(y), sourceRect.Width, sourceRect.Height);

            spriteBatch.Draw(tex, destinationRect, sourceRect, Color.White);
        }