/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin( SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, camera.Transform ); tileMap.Draw(spriteBatch, camera); Vector2 topLeft = new Vector2(camera.Left, camera.Top); Vector2 bottomRight = new Vector2(camera.Right - 32, camera.Bottom - 32); spriteBatch.DrawString(font, "!", topLeft, Color.Red); spriteBatch.DrawString(font, "!", bottomRight, Color.Red); spriteBatch.End(); base.Draw(gameTime); }