/// <summary> /// Draws the control. /// </summary> protected override void Draw() { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, _camera.transformation); _currentMap.draw(spriteBatch); if (_selectedTile != null && _selectedSprite != null) { _selectedTile.update(); _selectedTile.draw(_selectedSprite, spriteBatch, mouseSnapX, mouseSnapY); } spriteBatch.End(); }