From c247b6c3890f8f2adea0e96a96573c06913819e3 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Sun, 8 Dec 2019 20:33:20 -0500 Subject: [PATCH] Add Consolas as sprite font GitOrigin-RevId: e30c036fa144e580655d0b4bbbd5077eba72b62b --- Jumpy.Shared/JumpyGame.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jumpy.Shared/JumpyGame.cs b/Jumpy.Shared/JumpyGame.cs index 812d180..6e8a01a 100644 --- a/Jumpy.Shared/JumpyGame.cs +++ b/Jumpy.Shared/JumpyGame.cs @@ -81,13 +81,13 @@ namespace Jumpy { // Draw RenderTarget to screen. GraphicsDevice.SetRenderTarget(null); GraphicsDevice.Clear(Color.Black); - spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Opaque, + spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, RasterizerState.CullNone); Rectangle drawRect = new Rectangle( 0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height); spriteBatch.Draw(renderTarget, drawRect, Color.White); - // spriteBatch.DrawString(font, "hello world", new Vector2(10, 10), Color.Black); + spriteBatch.DrawString(font, "FPS: 60", new Vector2(10, 10), Color.White); spriteBatch.End(); base.Draw(gameTime);