From bb709bd6ae7245d681ad2d401ba72e7ba96281f6 Mon Sep 17 00:00:00 2001 From: SpitfireX Date: Tue, 11 Aug 2015 04:43:04 +0200 Subject: 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) --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') 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) -- cgit v1.2.3