From 37cb057bb3d7da79b6944f73cd0a2764500bacba Mon Sep 17 00:00:00 2001 From: SpitfireX Date: Sat, 8 Aug 2015 20:42:28 +0200 Subject: Updated readme and added original agar.io controls. --- README | 8 +++++--- test.py | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README b/README index 98320f3..3796768 100644 --- a/README +++ b/README @@ -4,6 +4,8 @@ git submodule update --init python3 test.py move mouse = move -left click = split -right click = eject some mass - +left click, space = split +right click, w = eject some mass +r = respawn +s = lock movement +esc = quit \ No newline at end of file diff --git a/test.py b/test.py index bde693d..72db3a0 100644 --- a/test.py +++ b/test.py @@ -246,9 +246,9 @@ while True: pygame.display.set_caption("Agar.io: " + str(c.player.nick) + " - " + str(int(total_mass)) + " Total Mass - " + str(fps) + (" FPS - MOVEMENT LOCKED" if not movement else " FPS")) + global mb mp=pygame.mouse.get_pos() # print(mp) - oldmb=mb mb = pygame.mouse.get_pressed() @@ -275,6 +275,10 @@ while True: if event.key == pygame.K_s: global movement movement = not movement + if event.key == pygame.K_w: + c.send_shoot() + if event.key == pygame.K_SPACE: + c.send_split() if event.key == pygame.K_ESCAPE: pygame.quit() -- cgit v1.2.3