IOS Online game without a server?

I made an iOS game that works on both Bluetooth and Bonjour. It works great in both directions, but I would really like it if the players could play with the aphorist with any Internet connection, be it edge, 3G or different wi-fi addresses.

Catch: I do not have the resources or knowledge to configure dedicated servers or anything like that. GameKit seems to have something like that that will allow me to do this, but despite spending tens of hours in the past week to figure out how to use it, I haven't found anything.

So, does anyone have any ideas for solutions? My game is only one on one, if this makes the process easier.

+4
source share
2 answers

Why not get through Game Center with GameKit?

Apple provides the entire infrastructure for the game worldwide through its servers (in 3G or Wi-Fi). With Game Center you can play up to 4 players (so in your case there is no problem), it’s free, you don’t need to manage the server, there is an invitation mechanism between friends and much more.

The logic of your game remains on the client side, so it will be the same as your real game (expect from an API that seems to me).

You can find all the information about the official documentation here . If you want, the ray wenderlich blog is very commonplace (but it uses the cocos2d structure instead of CocoaTouch).

+2
source

Yes, try GameCenter with GKMatch - it works great if you don’t need to send tons of data to the game. If you create an extra layer between your application and GKMatch and GKSession, you can use them as transparently (so your game supports local multi-user AND mode). Tested, working

+1
source

All Articles