-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,235 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ dist/ | |
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,18 @@ | ||
pyagar | ||
====== | ||
|
||
``pyagar`` is a python client for the popular online game **agar.io**. | ||
|
||
This package allows you to play the game, see the gameplay as an spectator | ||
and also play automatically with the **auto** feature. | ||
|
||
.. image:: docs/images/shot.png | ||
:alt: Screenshot | ||
:align: center | ||
|
||
|
||
Dependencies | ||
------------ | ||
|
||
In order to run this software you'll need: | ||
|
||
- Python 3.4+ | ||
- SDL2 (you may found it in your distribution as libsdl2) | ||
- sdl2_ttf https://www.libsdl.org/projects/SDL_ttf/ | ||
- sdl2_gfx http://cms.ferzkopp.net/index.php/software/13-sdl-gfx | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
It is recomended to install this package into a virtualenv. | ||
|
||
|
||
Stable version | ||
~~~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
$ pip install pyagar | ||
Usage | ||
----- | ||
|
||
Command | ||
~~~~~~~ | ||
|
||
This package creates the command ``pyagar``. | ||
|
||
.. code-block:: bash | ||
$ pyagar --help | ||
usage: pyagar [-h] [--no-visualize] [-n NICK] [--auto] [--debug] [--spectate] | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
--no-visualize | ||
-n NICK, --nick NICK | ||
--auto | ||
--debug | ||
--spectate | ||
Controls | ||
~~~~~~~~ | ||
|
||
=========== ============================================ | ||
Action Control | ||
=========== ============================================ | ||
Move Mouse (Relative to the center of the window) | ||
Start Mouse (Left button) | ||
Eject ``W`` key | ||
Split ``Space`` key | ||
Fullscreen ``F`` key | ||
Zoom Mouse wheel | ||
Exit ``ESC`` key | ||
=========== ============================================ | ||
|
||
|
||
Play examples | ||
------------- | ||
|
||
Just play | ||
~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
$ pyagar play | ||
Press the left mouse button to start. | ||
|
||
|
||
Just watch the game | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
$ pyagar spectate | ||
Play automatically using a bot | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
$ pyagar bot --type=EatWhenNoPredators | ||
Other implementations | ||
--------------------- | ||
|
||
- https://github.com/Gjum/pyAgar.io | ||
- https://github.com/Raeon/pygar | ||
pyagar | ||
====== | ||
|
||
``pyagar`` is a python client for the popular online game at http://agar.io. | ||
|
||
.. warning:: | ||
|
||
This software is not the official client and is not associated in any | ||
manner with the original website. | ||
|
||
This package allows you to play the game, see the gameplay as an spectator, | ||
record and replay games and also develop your own bot. | ||
|
||
Please, `checkout the documentation`_ for further instructions. | ||
|
||
Enjoy! | ||
|
||
.. _`checkout the documentation`: http://pyagar.readthedocs.org |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Command Line Interface | ||
====================== | ||
|
||
.. argparse:: | ||
:module: pyagar.cmdline | ||
:func: pyagar_parser | ||
:prog: pyagar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Controls | ||
======== | ||
|
||
|
||
=============== ========== ========== | ||
Action Peripheral Detail | ||
=============== ========== ========== | ||
**Eject** Keyboard ``W`` | ||
**Exit** Keyboard ``ESC`` | ||
**Fullscreen** Keyboard ``F`` | ||
**Move** Mouse | ||
**Split** Keyboard ``Space`` | ||
**Start** Mouse ``Left`` | ||
**Zoom** Mouse ``Wheel`` | ||
=============== ========== ========== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Installation | ||
============ | ||
|
||
Dependencies | ||
------------ | ||
|
||
You'll need some software in order to run ``pyagar``. | ||
|
||
- Python_ >= 3.4 | ||
- libsdl2_ | ||
- libsdl2-gfx_ | ||
- libsdl2-ttf_ | ||
|
||
|
||
Linux | ||
----- | ||
|
||
Ubuntu 15.04 | ||
~~~~~~~~~~~~ | ||
|
||
.. code-block:: bash | ||
$ sudo apt-get install python3 python3-pip libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-ttf-2.0-0 | ||
$ sudo pip3 install pyagar | ||
.. _Python: http://www.python.org/ | ||
.. _libsdl2: https://www.libsdl.org/ | ||
.. _libsdl2-gfx: http://cms.ferzkopp.net/index.php/software/13-sdl-gfx | ||
.. _libsdl2-ttf: https://www.libsdl.org/projects/SDL_ttf/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. automodule:: pyagar.client | ||
:members: | ||
|
||
.. automodule:: pyagar.cmdline | ||
:members: | ||
|
||
.. automodule:: pyagar.control | ||
:members: | ||
|
||
.. automodule:: pyagar.log | ||
:members: | ||
|
||
.. automodule:: pyagar.messages | ||
:members: | ||
|
||
.. automodule:: pyagar.utils | ||
:members: | ||
|
||
.. automodule:: pyagar.visual | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Application] | ||
name=pyagar | ||
version=0.0.8 | ||
entry_point=pyagar.cmdline:winlaunch | ||
console=false | ||
icon=data/pyagar.ico | ||
|
||
[Python] | ||
version=3.4.0 | ||
bitness=32 | ||
|
||
[Include] | ||
# Importable packages that your application requires, one per line | ||
packages=sdl2 | ||
requests | ||
tabulate | ||
websockets | ||
|
||
# Other files and folders that should be installed | ||
files=lib/ |
Oops, something went wrong.