Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game

simple multiplayer game using pygame

To run a server:

Have banned.json in the same folder as server.py
banned.json should be a list of IPs to block
Run server.py
The server will start on port 38491

To use a server:

Click on player names on the left to kick them
Click on text on the right to clear lists if they get too big
To close the server, close the window:

  • A warning will be sent in the server's chat immediately
  • After 1 second, the game logic will stop and all players will be kicked
  • after another 0.5 seconds, the server and any remaining connections will close

To run the client:

Have config.json in the same folder as client.py
config.json should look like this:
{
"HOST": "host IP",
"PORT": 38491 unless specified otherwise
"NAME": "your username"
}
If config.json is not present in the same folder as client.py, it will be created
run client.py

To use the client:

WASD to move
Click to shoot
T to chat

  • ENTER to send
  • ESC to cancel

Health is in the top left
Rainbow squares are power-ups
ESC to quit

About

simple multiplayer game using pygame

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages