📜  如何在 monogame 中绘制文本 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.844000             🧑  作者: Mango

代码示例1
// In the LoadContent() method:
SpriteFont font = Content.Load("sprite font location");
// In the Draw() method:
spriteBatch.Begin();
spriteBatch.DrawString(font, "Hello World!", position, color);
spriteBatch.End();