simple multiplayer game using pygame
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
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
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
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