Answers for "how to draw text in monogame"

C#
2

how to draw text in monogame

// In the LoadContent() method:
SpriteFont font = Content.Load<SpriteFont>("sprite font location");
// In the Draw() method:
spriteBatch.Begin();
spriteBatch.DrawString(font, "Hello World!", position, color);
spriteBatch.End();
Posted by: Guest on January-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language