Game Development Community

Networking on iPhone

by Alistair Lowe3 · in iTorque 2D · 03/24/2011 (9:40 am) · 5 replies

Hi guys,

I'm very curious as to what networking elements are available to me in iTorque?

Is there a special interface that must be used? Are all of the standard Torque networking features available?

Could anyone provide a summary as I'm new to networking with Torque in general.

Cheers

#1
03/24/2011 (7:13 pm)
I've been reading books, official docs and free samples of Game Kit integration. A really basic integration into an iTorque 2D game would only take a couple of hours. Granted, the result would not be mass market ready or robust, but you could have a Contra style game running very quickly.

That's the route I want to take iTorque 2D down. There is currently a client/server based networking layer, but I have not tested it since 1.4. I have my eyes on Game Kit, so I did not want to put time into the current networking. If you check the Checkers tutorial in the Torque 2D Documentation, you can get some sample code on how the networking system used to work. I can't guarantee it, though.
#2
03/24/2011 (9:37 pm)
I sort of expect guidelines for networking on iOS to change with iOS 5, but HTTPObject should probably be using the CocoaTouch API the proper way in a future edition. Launch a request (POST/GET), signal a method when responses come in. Two levels of script counterparts should be made, too. One that just grabs data and blocks, another which mimics the real interface, with a method being called as needed.
#3
03/25/2011 (5:16 am)
Does that lock us into using Game Kit for multiplayer? Is it free, open source? Does that mean we HAVE to use Game Center?
#4
03/25/2011 (8:11 am)
Quote:Does that lock us into using Game Kit for multiplayer?
No

Quote: Is it free, open source?
It is a framework in the official iOS SDK.

Quote:Does that mean we HAVE to use Game Center?
Game Center is an app, a service. Game Kit allows you to interact with Game Center, but also provides other functionality like networking and voice chat.
#5
03/25/2011 (8:13 am)
I didn't realize it was part of the official iOS. I was under the impression it was part of Game Center.

Sounds good to me :)