Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
Source by docs.monogame.net #
 
PREVIOUS NEXT
Tagged: #draw #text #monogame
ADD COMMENT
Topic
Name
8+4 =