Pygame network support

I am making a simple multi-player economic game in pygame. It consists of turns of a certain length, at the end of which data is sent to a central server. Several quick calculations are performed according to the data, and the results are sent back to the players. My question is how should I implement network support. I looked at Twisted and at Pyro, and any suggestions or tips would be appreciated.

+3
source share
3 answers

A twisted would certainly be a good idea. Here is an example of code that combines twisted and pygame.

+6
source

Twisted PyRo, , , , - . , , . !

+1

There are several plug-and-play libraries specifically designed to work with PyGame on the pygame.org website .

These include PodSixNet, PygLibs.net, and my own Mastermind (which, while at the risk of self-aggrandizement, is lightweight, easy to use, and comes with a simple tutorial).

+1
source

Source: https://habr.com/ru/post/1714698/


All Articles