summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-31 17:52:18 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-31 17:52:18 +0200
commit50921e339daf8f2c4cae8ab792e97b8a35a90dbe (patch)
treead45aad3f6bdd66ad37c3c93885dc3a0e0d63b6b /gui.py
parent5526f7ac73d02aff5c078b553e4e66a2d61e9308 (diff)
virus direction stats
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 6ba6f36..2040f32 100644
--- a/gui.py
+++ b/gui.py
@@ -319,8 +319,12 @@ def draw_markers():
def draw_debug():
for cell in c.world.cells.values():
parent = None
+ shoot_vec = None
+ settled = None
try:
parent = cell.parent
+ shoot_vec = cell.shoot_vec
+ settled = cell.calmed_down
except AttributeError:
pass
@@ -329,6 +333,11 @@ def draw_debug():
draw_circle(parent.pos,3,(255,0,0),True)
+ if shoot_vec != None and settled != True:
+ shoot_vec = 400 * shoot_vec / shoot_vec.len()
+ draw_line(cell.pos, cell.pos+shoot_vec, (0,255,255))
+
+
def draw_frame():
global screen, movement, zoom, screensize, input, bot_input, marker, marker_updated, running