Anyone tried multiplayer yet?
by Dave Young · in iTorque 2D · 01/21/2009 (9:35 am) · 3 replies
There are a couple of iPhone SDK options for doing multiplayer... web and sockets.
the WiTap sample app does sockets.
I'm at the point of deciding on a multiplayer solution. It seems reasonable that a tcpobject doing Server/php and 2 clients would obviously work, though a socket based client to client solution would be much much better.
So I was wondering if anyone has tried out either method and could comment particularly on p2p sockets using iTGB?
Thanks in advance!
the WiTap sample app does sockets.
I'm at the point of deciding on a multiplayer solution. It seems reasonable that a tcpobject doing Server/php and 2 clients would obviously work, though a socket based client to client solution would be much much better.
So I was wondering if anyone has tried out either method and could comment particularly on p2p sockets using iTGB?
Thanks in advance!
#2
Please keep us updated as you go.
UPDATE:
BTW. are you using the 3G or wifi? it shouldn't matter right? both should work?
01/27/2009 (1:10 pm)
That's great to hear! Please keep us updated as you go.
UPDATE:
BTW. are you using the 3G or wifi? it shouldn't matter right? both should work?
#3
01/27/2009 (1:27 pm)
I am using 2 iPod touches for development, so: WIFI. That means it comes with some more frequent disconnections depending on where you are, but the TCPObject and the functions I will write should handle it nicely
Torque 3D Owner Dave Young
Dave Young Games
First is a simple chat/message handler but it works fine. I'll still need a master server or web server for the initial connection/IP discovery, but it really works fine!
The addition and workingness of the network library is making iTGB one of the best investments I've ever made, no matter how cranky I get sometimes.