多人游戏中心编程 - 最佳入门方式?

发布于 2024-10-08 23:17:40 字数 288 浏览 0 评论 0原文

我计划编写一个小型演示应用程序,允许多个玩家在 iPhone 上玩多人游戏时交换短信(可能还有语音消息)。此外,其他类型的数据也必须在玩家的参与者之间共享。

GameCenter 似乎是正确的选择。但我在任何地方都找不到合适的示例代码。我检查了 GKTank,但它只能通过蓝牙连接 2 个玩家。在我的游戏中,超过 2 名玩家将参与游戏 - 通过 GameCenter 连接 - 而不是 p2p 蓝牙。

最好从哪里开始?是否有示例代码显示编写基本多人游戏所需的所有主要 GameCenter 代码片段?

非常感谢!

I plan to write a small demo app that allows several players to exchange text messages (and probably voice messages) while playing a multi-player game on the iphone. Also other type of data will have to be shared among the participants of the players.

GameCenter seems to be the right way to go. But I don't find a suitable sample code anywhere. I checked GKTank but it just works over bluetooth connecting 2 players. In my game more than 2 players will be part of the game - connected through the GameCenter - not p2p bluetooth.

What is the best place to get started? Is there a SAMPLE CODE showing all the main GameCenter code pieces required to write a basic multi-player game?

Thank you very much!

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

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

发布评论

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

评论(1

那支青花 2024-10-15 23:17:40

这似乎是一个很好的起点。关于服务器端和客户端的一个很好的小介绍。 http:// www.crocodella.com.br/2010/12/creating-a-multiplayer-abstraction-layer-with-gamecenter-and-asyncsocket/

This seems to be a good starting point. A nice little introduction with server side and client. http://www.crocodella.com.br/2010/12/creating-a-multiplayer-abstraction-layer-with-gamecenter-and-asyncsocket/

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