summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-24 22:29:08 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-24 22:29:08 +0200
commit5dfe8e88c44e23e8b24c42028b3b2456abaa6cef (patch)
treefc480bf7295502b707a9e78399335bb2a30babdd /gui.py
parent12557023aec828af6a9a78473273389750d68330 (diff)
store cell.movement_angle
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index bce2355..5025f26 100644
--- a/gui.py
+++ b/gui.py
@@ -144,7 +144,7 @@ def generate_virus(spikes, spike_length, radius, global_coords):
def draw_cell(cell):
cx,cy = world_to_win_pt(cell.pos,c.player.center)
try:
- mov_ang = cell.movement.angle()
+ mov_ang = cell.movement_angle
p2 = cell.pos + Vec( math.cos(mov_ang + 10*math.pi/180), math.sin(mov_ang + 10*math.pi/180) ) * (cell.size+700)
p3 = cell.pos + Vec( math.cos(mov_ang - 10*math.pi/180), math.sin(mov_ang - 10*math.pi/180) ) * (cell.size+700)