Simple Network Play

Posts: 4
Joined: 2011.05
Post: #1

I'm trying to add simple multiplayer to my game. It's pretty basic, mainly I want to communicate each player's mouse position, along with some statuses. I've looked into TCP with Twisted, but I don't know if that is the best choice for a real-time game. Also, I've looked at some Apple sample code, but I think I'm missing something... For example, in the 'CocoaEcho' sample, there is the app delegate, and then a server class. What do you do with the server class? I've noticed in the 'build' folder, there is also a UNIX executable. Does this go on a web server? It would be great if someone could explain what to do with client/server classes, or what the best way to make a game like this would be.

Thanks Smile
Quote this message in a reply
Posts: 49
Joined: 2011.08
Post: #2
The server can be initiated by who ever is hosting. Then the client can connect by ip, which is the simplest method. But your game should have both server and client built in. The the user decides if he or she wants to host or connect to another host. I hope that helps. Wink
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Network Streams problem Briksins 4 10,224 Aug 22, 2011 02:25 PM
Last Post: Briksins
  Sending an NSImage on a Network mindwalkernine 1 4,457 Aug 9, 2006 04:23 AM
Last Post: djork