agar.io python客户端库
pyagar的Python项目详细描述
pyagar是流行在线游戏agar.io的python客户端。
此软件包允许您以旁观者的身份玩游戏 也可以使用auto功能自动播放。
依赖关系
要运行此软件,您需要:
- Python3.4+
- sdl2(您可以在发行版中找到libsdl2)
- sdl2_ttfhttps://www.libsdl.org/projects/SDL_ttf/
- SDL2撸gfxhttp://cms.ferzkopp.net/index.php/software/13-sdl-gfx
安装
建议将此软件包安装到virtualenv中。
稳定版本
$ pip install pyagar
用法
命令
这个包创建命令pyagar。
$ 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
对照组
Action | Control |
---|---|
Move | Mouse (Relative to the center of the window) |
Start | Mouse (Left button) |
Eject | ^{tt3}$ key |
Split | ^{tt4}$ key |
Fullscreen | ^{tt5}$ key |
Zoom | Mouse wheel |
Exit | ^{tt6}$ key |
播放示例
只需播放
$ pyagar play
按鼠标左键开始。
只需观看游戏
$ pyagar spectate
使用机器人自动播放
$ pyagar bot --type=EatWhenNoPredators
0.0.3
- 记录Pyagar模块。