Skip to content

This is multiplayer Python clone of agar.io game. With client-server architecture.

License

Notifications You must be signed in to change notification settings

alexandr-gnrk/agario

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agar.io

This is multiplayer python implementation of game agar.io.

Game demo

Stack

Features

  • 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

Setup

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

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

Examples

Run client:

python3 agario.py

Run server:

python3 agario.py --server

Run server with specified port:

python3 agario.py --server --port 7839

Screenshots

Main menu Start menu Game

Releases

No releases published

Packages

No packages published

Languages