XNA 游戏中的高分保存在哪里?

发布于 2024-07-05 06:52:30 字数 410 浏览 7 评论 0原文

我正在 XNA 中制作一个简单的 2 人游戏,并开始考虑保存玩家的高分。

我希望游戏能够在 Xbox 360 和 Windows 上运行,因此我必须使用该框架来保存数据。

看来您将数据保存到特定用户的玩家标签 - 所以我的问题是,如何处理高分?

  • 将用户自己的分数保存在他们的个人资料中? (因此,如果您是唯一登录的人,您只能看到自己的分数)
  • 尝试在所有个人资料中保存其他玩家的分数吗? (尝试保持同步似乎很痛苦)
  • 在线存储分数
    • 360 似乎有一个显示朋友高分的标准方法。 可以从 XNA 内部访问它,还是仅适用于已发布的游戏?
    • 我自己做。 (对于这么小的个人项目来说似乎有点过分了。)

I'm making a simple 2 player game in XNA and started looking into saving the player's high scores.

I want the game to work on the XBox 360 as well as Windows, so I have to use the framework to save the data.

It seems that you save data to a particular user's gamer tag - so my question is, what to do with high scores?

  • Save the user's own scores in their profile? (So you can only see your own scores if you're the only one signed in)
  • Try and save other player's scores in all profiles? (Seems like a pain to try and keep this sync'd)
  • Store scores online
    • The 360 seems to have a standard method for showing friend's high scores. Can this be accessed from within XNA, or is it only available to published games?
    • Roll my own. (Seems excessive for such a small personal project.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

蛮可爱 2024-07-12 06:52:31

您可能想阅读http://www.enchantedage.com/highscores。 它使用 XNA 网络会话与玩同一游戏的其他 Xbox 分享高分。

You may want to read http://www.enchantedage.com/highscores. It uses XNA network sessions to share high scores with other xboxs playing the same game.

紫竹語嫣☆ 2024-07-12 06:52:31

这是一种已经完成的方法,看起来非常简单且易于实现。

http://xnaessentials.com/tutorials/highscores.aspx

Here's one way that has been accomplished that seems extremely simple and easy to implement.

http://xnaessentials.com/tutorials/highscores.aspx

谁许谁一生繁华 2024-07-12 06:52:30

XNA Live API 不允许您访问排行榜...因此您唯一的选择是将分数存储在本地。 如果您希望用户看到彼此的分数...您可以使用两个不同的商店。 玩家存储自己的保存数据……然后标题存储来存储分数。

当然,如果360有多个存储设备,他们就必须选择两次……但只有在他们进入高分部分时,你才能让他们选择得分设备。

the XNA Live API doesn't give you access to leaderboards ... so your real only option is to store the scores locally. If you want users to see each other's scores ... you could use two different stores. The player's store for his own save data ... and then title storage to store scores.

Of course then, if the 360 has more than one storage device, they'll have to select it twice ... but you could only let them choose the device for scores if they go into the high score section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文