gate toasts behind Debug.Enabled, rearrange their position & color
GitOrigin-RevId: 4efcd95c3034a51f224fdc452d525b2e20057354
This commit is contained in:
parent
70d8bbfa29
commit
7ed88960a5
@ -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}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user