summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-11 04:43:04 +0200
committerSpitfireX <timm.weber@me.com>2015-08-11 04:43:04 +0200
commitbb709bd6ae7245d681ad2d401ba72e7ba96281f6 (patch)
tree5faf68054e0618916d6614a1cc5a626342aac1a7 /main.py
parent6b7c7479a3fb8afac15a506115b16b247b4c7680 (diff)
Fixed render order and added bot input locking
- the render order is now strictly food < cells(small -> big) -> viruses(small -> big) - added the option to lock the bot input (b key)
Diffstat (limited to 'main.py')
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index ba21071..15e438b 100644
--- a/main.py
+++ b/main.py
@@ -119,7 +119,8 @@ while True:
color = (0,255,0)
print("Nothing to do, heading to random targetination: " + str((rx, ry)))
- c.send_target(target[0], target[1])
+ if gui.bot_input:
+ c.send_target(target[0], target[1])
gui.draw_line(c.player.center, target, color)
gui.update()
stats.log_pos(c.player.center)