Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.66 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.66 KB

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