refactor: reference tile size using config

This commit is contained in:
2021-06-08 14:07:03 -04:00
parent 776170fb9b
commit 18c488ac48
2 changed files with 7 additions and 3 deletions

View File

@@ -79,9 +79,9 @@ class Tetris:
# draw all game objects
if self.well:
self.well.draw(self.screen, self.tile_size) # TODO Should it be doing taking in tile_size?
self.well.draw(self.screen)
if self.current_piece:
self.current_piece.draw(self.screen, self.tile_size)
self.current_piece.draw(self.screen)
# update display
pygame.display.update()