What protocol should I use if I am writing a multiplayer game server with Twisted?
I am developing a multiplayer game server with Twisted. This is a simple game in which there are several players on each map to interact with each other. At the very beginning, I just want to make them move and they can be seen by others.
I think most of the data I need to send back and forth is motion data like direction, speed, etc.
Is there a protocol that Twisted already implements I should be using? Is it NetstringReceiver
good for this?
Thank!
+3
source to share
1 answer
Use AMP . Twisted includes a pretty good implementation . You can find an example of using AMP in the 2nd game of the game project in the launcher .
See also this very similar question, Basic Networking with Pygame
+5
source to share