private void DrawMapItems(RenderTarget window, int left, int top, int width, int height)
{
// Multiply the width, height, left, and top by 32 to bring it up to scale with the actual screen size (32x32 tiles).
width *= 32;
height *= 32;
left *= 32;
top *= 32;
foreach (var mapItem in this._items)
{
if (mapItem.Item.Sprite.Position.X >= left && mapItem.Item.Sprite.Position.X <= (left + width))
{
if (mapItem.Item.Sprite.Position.Y >= top && mapItem.Item.Sprite.Position.Y <= (top + height))
{
window.Draw(mapItem.Item.Sprite);
}
}
}
}