是否可以在 monogame 中显示推文?

Is it possible to display tweets in monogame?

我想要在游戏中有一个“新闻”选项卡,它只会从 Twitter 帐户中提取和显示推文。这在单人游戏中可能吗? 我应该使用 Twitter API 吗?

I'm wanting to have a "news" tab in a game that would just pull and display tweets from a twitter account. Is this possible in monogame?

只要您有互联网连接并使用正确的 API,就可以在 .NET 中使用。 Monogame 作为一个游戏框架只是您的 .NET 应用程序的另一个依赖项。

Should I use the Twitter API?

是的,我建议同样使用 Twitter REST API。您可以获取您需要的内容的文本数据(在JSON中)。

困难的部分是在 Monogame 中呈现推文。您无法在 Monogame 中呈现 HTML 或 运行 javascript,因此您必须从头开始为“Twitter News Feed”实现自己的 UI 以显示推文。