views:

359

answers:

4

I'm interested in writing an iPhone game which uses the network to allow users on different iPhones to play against each other. I'm looking for an example of a game with source code which does this. I need some simple examples and documentation. Where should I look? I'm brand new to iPhone programming. Thank you!

A: 

That is a big ask :)

A book you might find useful (as it has recipes for most of what you'll need to do) is Erica Sadun's excellent "IPhone Developer's Cookbook"

Kindness,

Dan

Daniel Elliott
A: 

Most of the pieces that you need have examples on the apple site. You'll just have to put them together. http://developer.apple.com/iphone/

Joe Cannatti
+1  A: 

If you want to avoid just using GameKit, or you want to use the local wireless network alongside GameKit, the people who made BeamIt have very kindly published the source code for us all.

http://arctouch.com/beamit/developers/

Alan Taylor
+1  A: 

For GameKit (peer-to-peer via Bluetooth), there is Apple's sample application GKTank. If you're interested in Bonjour discovery and communication over the local network, Apple has the sample application WiTap.

Brad Larson