How would I add networked multiplayer support to an iPhone game? - iphone

I am looking to extend an iPhone game by adding support for networked multiplayer capabilities (preferably over WiFi). How would you suggest I add this functionality to this application?

Game Kit can be used to add match making and network communications to your game.
Start with the Game Kit Programming Guide which has step-by-step instructions for many scenarios and lots of sample code.

Related

Synchronous Turn Based game for iOS

I'm currently working on an iOS card game. It's like bridge but, different is some rules. Anyway, I'm currently thinking of the multiplayer aspect of this game. I can't use the iOS 5 turn-based feature as it's async, which is useless in my case. So, the question is, can this type of multiplayer games be implemented on using GameCenter API ? Or i will have to come up with my own server.
Thanks a lot
You may start with Ray Wenderlich's great tutorials.
Clearly YES. You can use Game Center for that. Turn Based Games on Game Center based on synchronous mentality. Look at here http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/ImplementingaTurn-BasedMatch/ImplementingaTurn-BasedMatch.html

physics library for iphone programming

Im looking for a free strong physics library for iphone programming (Objective C).
im trying to develop a very simple game for now to know and explore my capabilities.
There's two commonly used Chipmunk and Box2D . You might also want to check cocos2d if you're developing a 2d game. Ray Wenderlich got a very nice set of articles about developing games for iPhone, so you might want to check them out too.

What is GameKit development?

what is gamekit framework in iphone 4.0? can we develop individual game applications using it instead of cocos2d framework?
GameKit and cocos2d serve totally different purposes. cocos2d are for drawing graphics, while GameKit is to support social gaming (Game Center, P2P connection, Voice Chat).
Game Kit offers features that you can use to create great social games. Social games allow players to share their experiences with other players. When players tell their friends about their favorite games, this encourages more players to download and play those games. Positive word-of-mouth provides the best kind of free advertising to your game — happy customers.
(source: apple.com)
You can use both together.

iPhone - Need some reference code for card game

I am going to build a card game. Game will be like MahJong.
I want some reference code or link to start with. If you have any, then please share it.
You should take a look at Jens Alfke's GeekGameBoard open source framework, which uses Core Animation to enable board or card games. You might also want to check out the following questions:
Are there any Open-source iPhone games around?
iPhone board game: OpenGL ES or CoreGraphics?
is Open GL a Overkill for a 2d Card Game ?
This site:
Mah-Jong for Linux, Unix, MacOS and Windows
seems to contains links to just about every other site. Also there is source to download. Were you interested in the solitaire game or doing a 4-player networked thing?

Iphone Game Development

What are people using mostly to build iPhone games with? I'm learning iPhone programming. Currently I'm watching all the stanford vidcast, doing the assigments and going through the beginning iphone development apress book. I want to get into building games and want to know if developers are buidling everything with opengl es or are they using pre-existing game engines?
Depends how graphic-intensive the app is.
If it needs a lot of graphics, go with a pre-existing engine.
If not, many use OpenGL ES
I believe most people are simply using Apple's APIs. Other than that, I think cocos2d is pretty popular.
You can find a bunch of suggestions here:
learning iphone game development
Which technologies/concepts do you suggest I learn before creating an iPhone game?
I used Unity. There's been a lot of great games (even in the top 10) that used it. You don't even need to know objective-C. The code is written in scripting languages using C#, Javascript or boo and then compiled. It is expensive. It will cost you a minimum $600 for an indie license to do iPhone apps. unity3d.com
It's tough to get up to speed writing a game with all the APIs to learn and few good game examples (especially if you are new to Objective-C). I ended up tracking down the old crashlander source, which is notoriously hard to find since Apple pulled it.
There are probably half a dozen iPhone game programming books in the pipeline. Until then, the learning curve is pretty steep.
I'd suggest starting with an OpenGL 2D sprite-based game. Start by learning OpenGL ES, the touch system, then the audio system.