0

I am planning to make a multiplayer game with a JavaScript based Client UI and Python on the server side. The game will be dynamic, so communication speed is very important - consequently I have decided to use UDP. Does anyone have any tips on implementations I could utilize. What tools would you recommend for this project?

Perception
  • 79,279
  • 19
  • 185
  • 195
user1322731
  • 71
  • 1
  • 7
  • 2
    Please don't make the assumption that UDP is necessarily faster than TCP. Gracefully handling packetloss yourself can be quite tricky, and TCP works very well for many situations requiring low latency... – sarnold Jun 01 '12 at 22:39
  • 1
    You can't use UDP with javascript without some sort of browser plugin – Gerrat Jun 01 '12 at 22:43

2 Answers2

4

I recommend doing the dumbest simplest thing to get your project to work, meaning probably http and Json. Then deal with any performance problems. Otherwise you'll spend much of your project on a hard optimization problem that might not really matter.

Doug T.
  • 64,223
  • 27
  • 138
  • 202
1

I've been using SockJS + Tornado for this sort of thing. Easy to get started with, and well supported in modern browsers.

nathancahill
  • 10,452
  • 9
  • 51
  • 91