Connecting a server to a client in GameKit

GKTank, provided by Apple, has banned the use of Bluetooth to establish a connection. As I know, peer-to-peer communication using GameKit with maximum player is 4 and 16 for client-server connection.

I am confused how the server-client connection works.

I want to connect a maximum of 16 players in one local Wi-Fi network. Can this be done using only GameKit (not GameCenter)? Is there any sample project demonstrating how it works?

thanks

+4
source share
1 answer

Yes, I think this is possible because the documentation for the Game Kit Programming Guide (ad hoc connection section) says:

The maximum size of a client-server game is 16 players.

Your biggest problem will be how to get all the players to connect together (I would go to PeerPicker - do not use your own version of the user interface, because it is very painful to execute it correctly, especially for so many players)

Another problem you may encounter is that bluetooth may not be able to send and receive data fast enough for 16 players (I think 16 players deal with turn-based games)

Good luck;)

0
source

Source: https://habr.com/ru/post/1402869/


All Articles