在 Android 上获取 OpenFeint 玩家 ID
我已将 OpenFeint 集成到我的 Android 游戏中,我想知道需要添加什么才能获取 OpenFeint 玩家 ID。我想要 ID 或用户名,以便允许用户在设备之间转移他们的游戏帐户,并使用 OpenFeint 进行身份验证。
这是我使用 OpenFeint 的代码:
OpenFeintSettings ofsettings = new OpenFeintSettings(gameName, gameKey, gameSecret, gameID);
OpenFeint.initialize(this, ofsettings, new OpenFeintDelegate() {});
I've integrated OpenFeint into my Android game, and I'm wondering what i need to add in order to get the OpenFeint player id. I want the id or the username so I can allow users to transfer their game accounts between devices, authenticating with OpenFeint.
Here's my code for using OpenFeint:
OpenFeintSettings ofsettings = new OpenFeintSettings(gameName, gameKey, gameSecret, gameID);
OpenFeint.initialize(this, ofsettings, new OpenFeintDelegate() {});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@Andy嗨,当我在我开发的游戏中实现openFeint时,我还需要玩家ID
,我使用了以下代码
@Andy hi i also needed the player id when i implemented openFeint in the game i developed
I used the following code
如果您不是 100% 购买 OpenFeint,请查看 Swarm,它提供了一组类似的功能(排行榜、成就、云数据保存等)。 Swarm 的云数据将完全满足您的需求,并允许您将数据保存到用户的帐户,因此无论他们使用什么设备,他们都可以使用所有数据:)
If you're not 100% sold on OpenFeint, check out Swarm, which provides a similar set of features (leaderboards, achievements, cloud data save, etc). Swarm's Cloud Data would do exactly what you're looking for, and allow you to save data to a user's account, so no matter what device they're on, they have all of their data available :)