问题标签 [gamekit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
iphone - 在没有两部 iPhone 的情况下测试 iPhone 蓝牙功能
我正在开发一个涉及蓝牙文件共享的应用程序。对于开发,我并不总是有两个可用的 iPod Touch/iPhone,但我总是至少有一个,我的个人设备。所以我想知道的是,有没有办法模拟另一部 iPhone 的存在来开发应用程序?
在提交之前,我会在两部 iPhone 上进行测试,但只是针对初始开发阶段的构建,这可能吗?
gamekit - 一个玩家不能同时从多个设备登录游戏中心,对吗?
一个玩家不能同时从多个设备登录游戏中心,对吗?
iphone - 完整版和精简版之间的游戏中心
这可能吗?我想使用 Game Center Matchmaking 在我的游戏中实现多人游戏,但是否可以让完整版的拥有者与精简版的拥有者对战?我在 Apple 文档中找不到明确的答案。提前致谢。
iphone - 解锁成就 - GameCenter iPhone
我正在尝试解锁我为 iPhone 制作的游戏中的一项成就,但相当不成功。
从演示 Game Center 代码的 Apple 自己的 GKTapper 项目示例中,我已将 GameCenterManager.h 和 .m 以及 AppSpecificValues.h 文件复制到我的项目中。我已成功加载成就和排行榜以供查看。
但是,我无法解决或正确了解如何实际解锁成就。有人能指出如何使用这个或没有 GameCenterManager 我如何解锁成就吗?
谢谢。
iphone - GKScore 在 Xcode 3.2.5 中突然出错,我该怎么办?
我在应用商店有一个小游戏,使用游戏套件的排行榜。仅来自 Xcode 文档的代码。
它永远不会出错。但是今天我使用 Xcode 3.2.5 构建了这个项目。并更改一些其他代码,我现在发现 GKScore 报告分数是错误的。我这样称呼reportScore消息:
结果是 value=761228871165046176.like 那个:
iphone - 游戏中心身份验证块不断被调用
所以,我注意到在调用 initializeGameCenter() 一次之后,每次我的应用程序回到前台时,都会调用下面的块(在 authenticateWithCompletionHandler 之后) - 这是 Game Center 的常规行为吗?(我确保放置一个断点来验证只有块被调用,而不是 initializeGameCenter 本身)
iphone - iPhone Client/Server Message Broadcasting
I've been trying to create a simple client/server network over Bluetooth with 5 iPods. One iPod will be sending basic strings like "stop" or "go" to four iPods, which will then do various stuff when they receive the commands. I'm currently using GameKit without PeerPicker, and it has been unreliable and complicated to even start the connections. Once connected, I can send data just fine between two devices, but not more.
I'd like to be able to broadcast simple, short messages to iPod "clients" from an iPod "server" without a network (like a remote controller). I've looked at numerous examples, including the tanks and wiTap examples, but I'm surprised there's nothing more straightforward without needing a network.
Here is how I start the connection:
And I handle the connection with the didChangeState in the delegate
The trouble is that the didChangeState method fires when it's good and ready, and the behavior is unpredictable. Maybe it's a problem with Bluetooth or GameKit, but I'd like to connect without the other iPod "authorizing" the connection. Is this possible?
Think I'm going to need a router and a network for something this simple?
Thank you
xcode - 请帮助一个超级初学者将 Gamecenter 整合到 Cocos2d 游戏中(Twee Jump。)
我正在使用 twee jump(这里的源代码:https ://github.com/haqu/tweejump )作为我在 cocos2d 上的第一个 iPhone 游戏的基础,但是我在将 game-center 整合到 twee jump 中遇到了很大的困难. 我用过 GKTapper 和一大堆其他东西,但没有结果。如果你们 Obj-c 的大师们能下载源代码,我将非常感激,并告诉我如何登录到游戏中心(只是为了显示一个小图标,上面写着:欢迎,你的名字)
拜托,我会非常感谢它(我在这里哭泣:'()
提前致谢,patoma16
ios4 - 向其他玩家发送数据 - Game Center
我正在开发一个简单的游戏中心多人游戏。除了向玩家发送消息外,我几乎管理了所有事情。我的意思是,我可以邀请玩家玩游戏,游戏开始等。
关于苹果文档,我正在使用以下方法发送数据,但它根本不起作用。
如果可能的话,一个工作样本会很棒。非常感谢。
我做的差不多。
但是当代码到达 NSLog(@"发送数据给对等节点时出错:%@", [errorTransmit localDescription]); 我收到程序接收信号:“EXC_BAD_ACCESS”。这就是为什么我看不到发生了什么。
ios - 没有无线路由器的GameKit点对点wifi?
提前感谢您对此的任何想法。我正在寻找一种通过 wi-fi 在 iOS 中进行实时应用程序间通信的方法(我需要大约 150 英尺的范围,并且不认为蓝牙提供这个)并且想知道 GameKit 提供的点对点连接,显然提供蓝牙和 wi-fi 连接。我的问题是:参与的设备必须是可用无线网络的成员(通过无线路由器)还是这种连接真的是对等的,不需要路由器?
我了解 Wi-fi Direct 即将到来,并且可能是一种选择。只是想知道我是否可以利用今天 iOS 中提供的服务来做到这一点。
谢谢!
蒂姆