private void DrawKeybindings(SpriteBatch aSpriteBatch) { OutlinedText.DrawWidthCenteredText(aSpriteBatch, myFont, 1.5f, "UP", WindowManager.WindowHeight - WindowManager.WindowHeight / 1.5f, Color.Gold); OutlinedText.DrawCenteredText(aSpriteBatch, myFont, 1.5f, "LEFT", new Vector2(WindowManager.WindowWidth - WindowManager.WindowWidth / 1.8f, WindowManager.WindowHeight - WindowManager.WindowHeight / 1.65f), Color.Turquoise); OutlinedText.DrawWidthCenteredText(aSpriteBatch, myFont, 1.5f, "DOWN", WindowManager.WindowHeight - WindowManager.WindowHeight / 1.8f, Color.Lime); OutlinedText.DrawCenteredText(aSpriteBatch, myFont, 1.5f, "RIGHT", new Vector2(WindowManager.WindowWidth - WindowManager.WindowWidth / 2.3f, WindowManager.WindowHeight - WindowManager.WindowHeight / 1.65f), Color.DarkOrange); for (int i = 0; i < myTooltips.Count; i++) { switch (i) { case 0: case 1: myTooltips[i].Draw(aSpriteBatch, Color.Gold); break; case 2: case 3: myTooltips[i].Draw(aSpriteBatch, Color.Turquoise); break; case 4: case 5: myTooltips[i].Draw(aSpriteBatch, Color.Lime); break; case 6: case 7: myTooltips[i].Draw(aSpriteBatch, Color.DarkOrange); break; } } }
private void DrawText(SpriteBatch aSpriteBatch) { OutlinedText.DrawCenteredText(aSpriteBatch, myFont, 2f, myLives.ToString(), new Vector2(WindowRelativePosition.X + Texture.Width / 2, WindowRelativePosition.Y + Texture.Height / 2)); }