Which protocol to use if I am writing a multiplayer game server with Twisted?

multiplayer, python, twisted

Solution

Use AMP. Twisted includes a pretty good implementation. You can find an example of using AMP in a 2d game in the Game project on launchpad.

See also this very similar question, Basic networking with Pygame

Problem

I am developing a multiplayer game server with Twisted. It's a simple game that on each map there are several players to interact with each other. At the very beginning, I just want to make them move and can be seen by others. I think most data I need to send back and forth are the movement data, such as direction, speed, etc. Is there a protocol that Twisted already implements I should use? Is `NetstringReceiver` good for this? Thanks!

Original source

Related problems