This is multiplayer python implementation of game agar.io.
- Python3
- PyGame
- pygame-menu
- socket
- loguru
- Full game loop
- HUD with score and top players
- Splitting by "Space" key
- Shooting by "W" key
- Players receive information only about the nearest chunks
- Communication between the client and the server occurs via sockets
Clone the repository and change the working directory:
git clone https://github.com/alexandr-gnrk/agario.git
cd agario
Create and activate the virtual environment:
python3 -m venv ./venv
source ./venv/bin/activate
Install requirements:
pip3 install -r requirements.txt
usage: agario.py [-h] [-wt WIDTH] [-ht HEIGHT] [-s] [-p PORT]
Python implementation of game agar.io
optional arguments:
-h, --help show this help message and exit
-wt WIDTH, --width WIDTH
screen width
-ht HEIGHT, --height HEIGHT
screen height
-s, --server start game server
-p PORT, --port PORT port number for server
Run client:
python3 agario.py
Run server:
python3 agario.py --server
Run server with specified port:
python3 agario.py --server --port 7839