x1a0
x1a0

Reputation: 10704

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

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!

Upvotes: 3

Views: 3489

Answers (1)

Jean-Paul Calderone
Jean-Paul Calderone

Reputation: 48335

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

Upvotes: 5

Related Questions