calculate radius prep

This commit is contained in:
Mateusz Dokowicz 2023-03-16 21:50:27 +01:00
parent 257f0f7d1d
commit a5e38a707b

View File

@ -21,13 +21,13 @@ def initial_draw(grid_dimensions, board_size):
tile_height = grid_height / board_size tile_height = grid_height / board_size
x = tile_width / 2 x = tile_width / 2
y = tile_height / 2 y = tile_height / 2
radius = 15 radius = 20
# rendering loop # rendering loop
while True: while True:
grid.start_draw() grid.start_draw()
grid.board(board_size, board_size) grid.board(board_size, board_size)
(x, y) = moving_cleaner(grid_width, grid_height, tile_width, tile_height, x, y) (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() grid.end_draw()
pygame.time.delay(10) pygame.time.delay(10)