summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-08 20:42:28 +0200
committerSpitfireX <timm.weber@me.com>2015-08-08 20:42:28 +0200
commit37cb057bb3d7da79b6944f73cd0a2764500bacba (patch)
tree6507895d239e10caaa9bb993b82f5eccc24ca392 /test.py
parent142b6b2844a54fa21e8301d945d43157c42d4ae4 (diff)
Updated readme and added original agar.io controls.
Diffstat (limited to 'test.py')
-rw-r--r--test.py6
1 files changed, 5 insertions, 1 deletions
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()