import pygame from enums import BrickColor class DropNext(): def __init__(self, width, height): self.dropnext = pygame.Surface((width, height)) self.width = width self.height = height self.dropnext.fill((0, 0, 0)) # Fill with black def draw(self, screen, tile_size): screen.blit(self.dropnext, (tile_size * 15, tile_size * 2)) def draw_block(self, brick): self.dropnext.fill(BrickColor.Black.value) self.dropnext.blit(brick, ((self.width - brick.get_width()) / 2, (self.height - brick.get_height()) / 2))