diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-10 02:13:44 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-10 02:13:44 +0200 |
commit | d980bc54a2bdefbfa83a7d1856db5c41fd68e7b8 (patch) | |
tree | 4159c035781264dee39a0e92352229257de8094d /gui.py | |
parent | bedcfe67296a7d5b20e4b01b634f95d51529d4a4 (diff) |
first bot stuff
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,7 +7,12 @@ import sys import math import time +def debug_line(p1,p2,col): + global screen + pygame.draw.line(screen, col, world_to_win_pt(p1, c.player.center), world_to_win_pt(p2, c.player.center)) +def update(): + pygame.display.update() def calc_zoom(): zoom1 = screensize[0] / 2051. @@ -87,6 +92,7 @@ def draw_cell(cell): else: gfxdraw.aacircle(screen, cx, cy, radius, color) gfxdraw.filled_circle(screen, cx, cy, radius, color) + def draw_leaderboard(): def filter(item): return item[1] leaderboard = list(map(filter, c.world.leaderboard_names)) |