Description

A complete, scalable clone of the popular web game, agar.io. This project was created purely in python, and utilizes the pygame (GUI) and sockets (web connection) libraries. There are 2 main files used to run code. The first is client.py, which runs the game itself. The second is server.py, which can be run on any network and can open a customizable “agar.io” server on any port. This game is playable online, and through local networks.

Github Repository

The Github repository can be found here

What were my goals with this project?

  • Create a reliable server and client connection with the sockets module
  • Create a graphical/GUI game that implemented physics and a dynamic viewport
  • Experiment with methods of storing and transfering data

Project Images

agario1.gif

agario2.png

Agario-Multiplayer readme.txt

Setup

  • Run the server.py file. It will prompt you with how you want the game map to be, what ip to use, and what port to run the server on.
  • Next run client.py. An ip and port (localhost is default) can typed into the text box at the bottom.
    Click on the play button to join the server.

Dependencies

  • pygame
  • sockets