Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Connecting people on an APP

If i'm want to connect 2-8 people who want to play a multiplayer game with each other in my app, how would I do that? What would I have to code for that? What about the server, should I have a special server that everyone connects to, or should one person be the host?

How would I program one person to be the host?

1 Answer

Mike Baxter
Mike Baxter
4,442 Points

If you're only doing an iOS app, you'll want to look into Game Center, because it takes a TON of stuff of your hands. I don't know the code, and I know you'll have to do a bit of learning to understand the code from Apple's documentation, but it's probably the best way to go for an iOS-only game. If you want to hear about what Game Center is like from a developer's standpoint, check out the first episode of the Debug Podcast (on iMore's website); it's an interview with Loren Brichter about his game Letterpress, which uses Game Center. The guys on the Podcast are super-knowledgeable (one used to work at Apple) and they give a really honest opinion about it. I haven't listened to it in about a year, so I can't remember everything, but I know it's a good resource. Also, check out the Apple developer documents on Game Center.

Thank You So Much, I completely forgot about Game Center, this really helped!