Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

So far I couldn't find anything on google so I'm asking here:

I need to connect two iphones or more to each other for a multiplayer game, what features does iphone api provide? is there some kind of bluetooth device or equivalent in iphone or should i just search over the wireless network connection? and what api should I use to connect them? is it possible to use c++ or are the api functions only available via obj-c iphone sdk?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Apple's Game Kit and Game Center frameworks include Objective-C classes for online matchmaking and local Bluetooth games as well. You should probably start with those.

share|improve this answer
    
if I use Gamekit, is there any chance that if I wanted later I could add support for other platforms (like android) to my game, I mean will an android user be able to play with an iphone user? –  Ali.S Sep 13 '11 at 21:31
1  
Using Apple's off the shelf solutions isn't going to give you a mechanism to connect to non-iOS devices. For that you'll want to roll your own mechanism using sockets or something. –  Tetrad Sep 13 '11 at 23:27
1  
Given Apple's typically policies, no way in hell, Gajet. –  Jordaan Mylonas Sep 13 '11 at 23:29
    
Use iOs sdk for iOs bluetooth or Gamecenter may be easiest ( initiating device plays host ), but if you want x-platform or large persistent worlds then you will be needing your own servers or user-setup servers. Nothing wrong with doing that. –  karmington Sep 13 '11 at 23:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.