diff options
author | SpitfireX <timm.weber@me.com> | 2015-08-11 02:47:46 +0200 |
---|---|---|
committer | SpitfireX <timm.weber@me.com> | 2015-08-11 02:47:46 +0200 |
commit | 6903c9ca537ccae1265acbb8bfea17480a5c4ae2 (patch) | |
tree | f7a5f2f681f295804580152e6aa34164b58b7ff1 | |
parent | 673878da2e31cf4e84948a626b5113066f305f9a (diff) |
Added draw_arc to gui.py
-rw-r--r-- | gui.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() |