kyranstar / Hunt-The-Wumpus

6 stars 0 forks source link

Rendering text to the screen #10

Closed kyranstar closed 9 years ago

kyranstar commented 9 years ago

How do I render text to the screen? I saw the method SpriteBatch.DrawString (SpriteFont, String, Vector2, Color) but that needs a SpriteFont and I haven't figured out how to add one to a monogame project.

WasabiFan commented 9 years ago

You can get a spritefont from the content manager. It would be easiest to use one of the fonts that I have already added (for the menu) from the content folder -- you just pass the name of one of those files to that LoadContent method that I linked to above.

kyranstar commented 9 years ago

Okay, cool. Thanks.