gate toasts behind Debug.Enabled, rearrange their position & color

GitOrigin-RevId: 4efcd95c3034a51f224fdc452d525b2e20057354
This commit is contained in:
Colin McMillen 2019-12-17 18:04:06 -05:00
parent 70d8bbfa29
commit 7ed88960a5
3 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,7 @@ namespace Jumpy {
if (bbox.Left < 0) { if (bbox.Left < 0) {
bbox.Offset(-bbox.Left, 0); bbox.Offset(-bbox.Left, 0);
} }
// Debug.Toast($"p: {player.X} c: {bbox.Center.X}"); Debug.Toast($"p: {player.X}, {player.Y} c: {bbox.Center.X}");
} }
} }
} }

View File

@ -50,7 +50,7 @@ namespace Jumpy {
if (toast == null) { if (toast == null) {
return; return;
} }
spriteBatch.DrawString(font, toast, new Vector2(10, 10), Color.YellowGreen); spriteBatch.DrawString(font, toast, new Vector2(10, 40), Color.Teal);
toast = null; toast = null;
} }

View File

@ -148,10 +148,9 @@ namespace Jumpy {
if (Debug.Enabled) { if (Debug.Enabled) {
string fpsText = $"{GraphicsDevice.Viewport.Width}x{GraphicsDevice.Viewport.Height}, " + string fpsText = $"{GraphicsDevice.Viewport.Width}x{GraphicsDevice.Viewport.Height}, " +
$"{fpsCounter.Fps} FPS"; $"{fpsCounter.Fps} FPS";
spriteBatch.DrawString(font, fpsText, new Vector2(10, 40), Color.YellowGreen); spriteBatch.DrawString(font, fpsText, new Vector2(10, 10), Color.Teal);
}
Debug.DrawToast(spriteBatch, font); Debug.DrawToast(spriteBatch, font);
}
spriteBatch.End(); spriteBatch.End();