optimization #5
@ -21,13 +21,13 @@ def initial_draw(grid_dimensions, board_size):
|
||||
tile_height = grid_height / board_size
|
||||
x = tile_width / 2
|
||||
y = tile_height / 2
|
||||
radius = 15
|
||||
radius = 20
|
||||
|
||||
# rendering loop
|
||||
while True:
|
||||
grid.start_draw()
|
||||
grid.board(board_size, board_size)
|
||||
(x, y) = moving_cleaner(grid_width, grid_height, tile_width, tile_height, x, y)
|
||||
grid.circle(x, y, 20, color=Colors.RED)
|
||||
grid.circle(x, y, color=Colors.RED)
|
||||
grid.end_draw()
|
||||
pygame.time.delay(10)
|
||||
|
Loading…
Reference in New Issue
Block a user