From 07fde40a846f11d123ddc2ccf182e417c561931a Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sat, 29 Aug 2015 01:55:42 +0200 Subject: stuff --- gui.py | 4 ++-- stats.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gui.py b/gui.py index 26b1045..1d7e312 100644 --- a/gui.py +++ b/gui.py @@ -206,8 +206,8 @@ def draw_cell(cell): cx,cy = world_to_win_pt(cell.pos,c.player.center) try: 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) + p2 = cell.pos + Vec( math.cos(mov_ang + 26*math.pi/180), math.sin(mov_ang + 26*math.pi/180) ) * (cell.size+700) + p3 = cell.pos + Vec( math.cos(mov_ang - 26*math.pi/180), math.sin(mov_ang - 26*math.pi/180) ) * (cell.size+700) cx2,cy2 = world_to_win_pt(p2,c.player.center) cx3,cy3 = world_to_win_pt(p3,c.player.center) diff --git a/stats.py b/stats.py index e65c49b..bb88c3e 100644 --- a/stats.py +++ b/stats.py @@ -6,6 +6,7 @@ import pickle from functools import reduce import mechanics import geometry +#import numpy def fit_gaussian(l): mean = sum(l) / len(l) -- cgit v1.2.3