Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Network Support for Pygame

I am making a simple multiplayer economic game in pygame. It consists of turns of a certain length, at the end of which, data is sent to the central server. A few quick calculations are done on the data and the results are sent back to the players. My question is how I should implement the network support. I was looking at Twisted and at Pyro and any suggestions or advice would be appreciated.

like image 906
Nikwin Avatar asked Feb 26 '26 04:02

Nikwin


1 Answers

Twisted would certainly be a good idea. Here is example code that integrates twisted and pygame.

like image 160
nosklo Avatar answered Feb 28 '26 17:02

nosklo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!