summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-11 02:49:09 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-11 02:49:09 +0200
commit2d1c5a31976425608e0fe22a1a6d07cbc24777ba (patch)
treebde1f360d5f2394f7aaae0997e8f2d1f62945490 /gui.py
parent41a73fed9bf12763ae2462265b41c7a76ef5613d (diff)
parent6903c9ca537ccae1265acbb8bfea17480a5c4ae2 (diff)
Merge branch 'master' of github.com:Windfisch/agario-frickel
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 5804055..91a52a8 100644
--- a/gui.py
+++ b/gui.py
@@ -73,6 +73,12 @@ def draw_path(path, color, global_coords=True):
for i in range(1, len(path)):
draw_line(path[i-1], path[i], color, global_coords)
+def draw_arc(pos, r, bounds, color, global_coords=True):
+ if global_coords:
+ pos = world_to_win_pt(pos, c.player.center)
+
+ gfxdraw.arc(screen, pos[0], pos[1], r, bounds[0], bounds[1], color)
+
def update():
pygame.display.update()