diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-11 18:02:45 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-11 18:02:45 +0200 |
commit | c1fd7cb5e809ce22b10c8bf9e0b0700edf2aebf9 (patch) | |
tree | d39763411089338fc58aeae76db2061abf3a31c0 /gui.py | |
parent | 9d20eb42565cf95574a1806d956c8e164ab2d570 (diff) |
clear_screen() function
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -190,13 +190,19 @@ def set_client(cl): global c c=cl +def clear_screen(): + global screen + global c + + screen.fill((255,255,255)) + def draw_frame(): global screen, movement, zoom, screensize, input, bot_input pygame.event.pump() clock.tick() - - screen.fill((255,255,255)) + + clear_screen() draw_world_borders() food = list(filter(lambda x: x.is_food, c.world.cells.values())) |