Skip to main content

All Questions

1 vote
1 answer
46 views

Why is the 'game' module running automatically when I am trying to run 'FootballSim_server' module?

MODULE I AM TRYING TO RUN - Football_sim module import socket from _thread import * import plyer import json class GameServer: def __init__(self): self.Server = '127.0.0.1' self....
Kelan Westwood's user avatar
0 votes
1 answer
73 views

Messages cannot flow between client and server

I followed the youtube video and used python to make a multiplayer online game of rock-paper-scissors. When I execute the script, the console displays "Couldn't get game", which is generated ...
Martin's user avatar
  • 29
1 vote
0 answers
66 views

Pygame player 2 is not updating its state [duplicate]

Whenever I run my pygame code on 2 configurations for 2 players they don't update the positions so my 2 configurations/players are separate and not in sync. I move the positions for the first ...
Thomas Mcgown's user avatar
1 vote
1 answer
398 views

Multiplayer Following Camera in Pygame

For a school project I am building a recreation of Among Us in python with Pygame. I have already set up all the server and client side code and that's all working fine. I'm now in the process of ...
Kij Mung's user avatar
4 votes
1 answer
5k views

python pygame - Multiplayer game

I'm trying to create a "Draw Something" game for at least three participants from different computers. I have a code that works for two players. Does anyone know how can I make it for three or more? ...
unakin's user avatar
  • 41
6 votes
1 answer
293 views

Pygame lags when two players are implemented

I have just started playing around with pygame, and have just come across a problem - when I make my game for 2 players, the second character always lags. Here is my code. import pygame, sys from ...
Jamie Lin's user avatar
1 vote
1 answer
961 views

Python PodSixNet Error

I'm trying to use a multiplayer module called PodSixNet to use in one of my games, but I get an error in assyncore.py when trying to run the client. However, the server works flawlessly. I developed ...
davkue's user avatar
  • 57
2 votes
1 answer
4k views

Python Multiplayer Games

I have been trying to find a good tutorial for making multiplayer games with python, but have struggled to find one that covers more than multiplayer on the same wifi connection. If its even ...
user3530572's user avatar
2 votes
1 answer
432 views

Can pygame events be handled in select.select input list?

The documentation for python's select.select says: Note that on Windows, it only works for sockets; on other operating systems, it also works for other file types (in particular, on Unix, it ...
hjpotter92's user avatar
  • 80.7k
1 vote
1 answer
2k views

Pygame Multithreading

I have a multiplayer game that runs on pygame. I am running the game/client/server in separate threads and have a simple echo server. Each time a player broadcasts a message, every other player will ...
1337holiday's user avatar
  • 1,954