gamekit

Locate an iPhone reliably indoors?

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:56:08
问题 I'm writing an app for a museum tour. I'd like my app to know where the user is in the building, if the user is standing in a particular room, in front of a particular work, etc. GPS doesn't work inside. (Using WiFi positioning could work, but I know Apple doesn't use Skyhook anymore, so I don't know where I would register my base stations.) Since GPS won't work, it would seem like having a specialized device in a known location and having the app detect that device, could work. But based on

How to play news in TV when i switch on, using scripting language in Unity3D? [closed]

时间秒杀一切 提交于 2019-12-20 07:55:25
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am new in unity3D. I need to know how can we play news in TV when i switch on using the scripting languages in Unity3D 回答1: You might be interested in MovieTexture. Movie Textures are animated Textures that are created from a video file. By placing a video file in your project's

gamekit over the internet

◇◆丶佛笑我妖孽 提交于 2019-12-18 12:11:51
问题 the gamekit over wifi documentation talks about local wifi and that it's built on top of bonjour. Does that mean it does not work over the Internet, locating user/players in a different subnet, different ISP ... etc If I need to connect to players/users on the Internet in general I assume I need to setup a server, right ? 回答1: YES , Game Kit can be used to connect peers over Internet. BUT in this case your application must respond to peerPickerController:didSelectConnectionType: and handle

Building a SpriteKit/GameKit leaderboard within a specific scene

这一生的挚爱 提交于 2019-12-18 11:33:55
问题 I'm pretty new to Swift and I'm having some trouble implementing a leaderboard into my game. I just watched a tutorial: 'Game Center Leaderboards! (Swift 2 in Xcode)' in which the GameCenter information all went through the one view of the app. In my game, I want the user to be able to play the game and then only when they are on a specific SKScene will they have access to GameCenter. So for example, on the GameOverScene will they be user authenticated and also will be able to upload their

GameKit keeping connection going while device screen off or in background

萝らか妹 提交于 2019-12-18 07:22:38
问题 I am working on an appliction that requires bluetooth connectivity, which i use GameKit for data transfer, however im seeing that when i go in background mode, or I just turn off the screen in app, the bluetooth connection is dropped... Ive seen other apps that keep the connection alive in such situations, anyone have any idea if I am missing something that wont cause the connection to drop on such cases? Have been looking around but havent found anything useful... Thanks Daniel 回答1: This is

GKMatchMaker invite handler deprecated

僤鯓⒐⒋嵵緔 提交于 2019-12-17 20:26:46
问题 I have the following code that I have been using before to handle invitations: [GKMatchmaker sharedMatchmaker].inviteHandler = ^(GKInvite *acceptedInvite, NSArray *playersToInvite) { // Insert game-specific code here to clean up any game in progress. if (acceptedInvite) { GKMatchmakerViewController *mmvc = [[GKMatchmakerViewController alloc] initWithInvite:acceptedInvite]; mmvc.matchmakerDelegate = self; [self presentViewController:mmvc animated:YES completion:nil]; } }; However, now it has

Encode NSArray or NSDictionary using NSCoder

喜你入骨 提交于 2019-12-17 18:37:49
问题 I was wondering whether or not it is possible to use the NSCoder method: - (void)encodeObject:(id)objv forKey:(NSString *)key to encode either an instance of NSArray or NSDictionary. If not how do you go about encoding them? I am trying to use NSKeyedArchived / NSKeyedUnarchiver to send data between phones using GameKit. I tried it and cannot seem to retrieve the string I stored in my array. The packet class I made comes through along with the packet type integer, but not the data in the

Transfer data between iOS and Android via Bluetooth?

狂风中的少年 提交于 2019-12-17 01:40:14
问题 I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between two devices. Between two iOS devices, this is easy enough. However, I was wondering if it is possible to transfer data between an iOS device and an Android device via the same mechanism. Has anyone come across documentation/tutorial that would explain how to do this? Is it even technically possible?

Connection trouble with GKPeerPickerController

醉酒当歌 提交于 2019-12-14 01:39:24
问题 I am working on an iOS game with GKSession and GKPeerPickerController. I am finding that the process of connecting two iOS devices is slow and unreliable, even if they are right next to each other. Let's call my devices "device A" and "device B." Here is what typically happens: On each device, I hit my app's connect button. Each device then shows the "iPads, iPhones, or iPod touches" window. Usually pretty quickly, the two devices each notice that the other exists. I then tell one of the

RSSI value in gamekit iphone api

微笑、不失礼 提交于 2019-12-13 17:45:04
问题 Is it possible to get bluetooth RSSI (Radio signal strength) value in gamekit iphone api? If it is pssobile, can i have some sample code. If it is not possible is there any other way to get bluetooth RSSI value in iphone OS 3.0? 回答1: No, there is no supported way to find out any of the data about any of the radios (cellular, wifi, or bluetooth). If you have need of such a feature you should file a bug report. 来源: https://stackoverflow.com/questions/1164136/rssi-value-in-gamekit-iphone-api