optimization #5

Merged
s473555 merged 6 commits from optimization into main 2023-03-16 22:13:59 +01:00
Showing only changes of commit 257f0f7d1d - Show all commits

View File

@ -53,5 +53,7 @@ class GridDraw:
self.line(0, tiles_height * i, self.width, tiles_height * i, color=color)
@default_color
def circle(self, x, y, radius, color=None):
pygame.draw.circle(self.screen, color, (x, y), radius)
def circle(self, x, y, color=None):
pygame.draw.circle(
self.screen, color, (x, y), 20
) # TODO calculate radius (now 15) in terms of window size.