Example #1
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Begin(samplerState: SamplerState.PointClamp, transformMatrix: camera.ZoomMatrix);

            // Draw all drawable DrawingArea components.
            tileDrawer.Draw(spriteBatch, tiles, tileSelection.TileSet, false, currentMousePosition, tileSelection.CurrentTile);
            grid.Draw(spriteBatch, bounds, camera.Zoom, camera.Position);
            tileSelector.Draw(spriteBatch, !tileMover.MovingSelectedTilesWithMouse, !tileMover.MovingSelectedTilesWithKeys, true);

            spriteBatch.End();
        }